0
votes

I modified the stock tab bar project, changing the frame of the tabbarcontroller so I could insert an iAd frame to persist throughout the app. I did this in the method: (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions.

This works until a modal popup is introduced. When a modal popup is removed from the view, the tabbarcontroller's frame has been restored to it's original height, that is, the application's frame.

How can I maintain the desired frame? Any help is appreciated.

1

1 Answers

1
votes

Make sure your tab bar controller isn't the main view controller of the window.

You want to add the tab bar controller and the iAd view as siblings to the window object, or define another view controller that owns both, setting up the layout of its view either in a xib or in -loadView. Hope this puts you in the right direction.