iphone - Problem adding a UIView created from a NIB to the window and offsetting to compensate for the menu bar -
I have noticed that when you create a new Xcode project as a visual based application, it creates NIB and when it comes to NIB It loads this menu loads down the bar, I am trying to create a window-based application and add a scene to the program window, but the view is loaded under the menu bar so that the portion of the scene is stopped going
I have tried
- (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) launchOptions {// Override for Adaptation after Acquisition Point MYViewController * viewController = [[[MYViewController alloc] initWithNibName: @ "MYViewController" bundle: zero]; [Add window] View: Controller view; [Window-making and knowledgeable]; Yes come back
}
And I have also tried to misfigure the view controller's "wantFullScreenLayout" property; Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) launchOptions {// Override point for optimization after application launch MYViewController * viewController = [[[MYViewController alloc ] InitWithNibName: @ "MYViewController" bundle: zero]; ViewController.wantsFullScreenLayout = No; [Add window] View: Controller view; [Window-making and knowledgeable]; Yes come back
- Text "itemprop =" text ">
found it!
[MYViewController.view setFrame: [[UIScreen main screen] ApplicationFrame]];
Comments
Post a Comment