Having a very strange behavior problem with a UITextView.
In IB Storyboard I dropped a View Controller. Then dropped a UITextView on top. Then resized the UITextView to fit, made an IBOutlet for it and saved.
I’m pushing the UIViewController on to a UINavigationController via a segue.
The problem is that the UITextView wants to consume the entire screen, minus the navigation bar. In IB, the UITextView is supposed be: x:20, y:83, w:280, h:164, not the whole screen.
Help?
Update:
- (void)viewDidLoad
{
[super viewDidLoad];
myTextView.frame = CGRectMake(20, 83, 280, 164); // does nothing...
}
Putting the UITextView in a UIView had no change. Springs and Struts removed.
Turns out my UIViewController was connected as a delegate of the UITextView in Interface Builder. Removing this made the UITextView resizeable.