I have a UIView in a UITabController . And it has a UITableView in it.
When you switch in the call status bar, this does nothing, and the view does not change automatically.
It takes the correct size based on whether the UIStatusBar call was UIStatusBar when the application was launched, but if the UIStatusBar parameter UIStatusBar enabled while the application is running, nothing changes.
Another tab view with the UINavigationController seems to resize.
Here is the code
if ([indexPath indexAtPosition: 0] == 0 || [indexPath indexAtPosition: 0] == 1) {
if (! airportChooser) {
airportChooser = [[AirportChooserController alloc] init];
airportChooser.targetController = self;
airportChooser.view.autoresizesSubviews = YES;
airportChooser.view.autoresizingMask = UIViewAutoresizingFlexibleHeight;
[airportChooser.view setAutoresizingMask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleWidth];
}
airportChooser.target = [indexPath indexAtPosition: 0];
[self.parentViewController.parentViewController.view addSubview: airportChooser.view];
self.parentViewController.parentViewController.view.autoresizesSubviews = YES;
self.parentViewController.parentViewController.view.contentMode = UIViewContentModeRedraw;
[self.parentViewController.parentViewController.view setAutoresizingMask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleWidth];
airportChooser.view.contentMode = UIViewContentModeRedraw;
// [airportChooser open];
}
objective-c iphone uitableview autoresize uistatusbar
msaspence
source share