I have a UIView that contains a UITextView . UIView initiated inside the UIViewController .
But when I touch the UITextView window, nothing happens. Neither the keyboard nor the delegate methods are responsive.
The code:
noteText = [[UITextView alloc]initWithFrame:CGRectMake(0, 0, 700, 240)]; noteText.layer.borderColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.2].CGColor; noteText.layer.borderWidth = 2; [noteText setEditable:YES]; noteText.userInteractionEnabled = YES; noteText.returnKeyType = UIReturnKeyDone; noteText.font = [UIFont fontWithName:@"Calibri" size:16]; noteText.textColor = [UIColor blackColor]; [self addSubview:noteText];
Update 1
I removed all other views from the UIViewController and only put the UITextView in the UIViewController and still did not respond. Neither the cursor nor the keyboard is displayed.
lagos source share