开发者

UIWindow doesnt allow me to see my UIToolBar

I am in a situation where I'm customizing a existing project. When trying to create a UIToolBar in Interface Builder it appears.

Once I press Run and Build and the app runs, There is just a bl开发者_如何学Cank screen.

Any ideas on how I can get the UIToolbar to appear in the foreground.

Any help is appreciated


Without looking at some code, there are many reasons why it would not show up. My best guess is that you are not actually loading the UIView that you think you are loading. Have you set the Outlets for the UIViewController's view? Are you adding the new view to an existing view with [view addSubview:newView]? IS the Tabbar nested (a child) of the new view in IB or is it on the same level?


You can add code in your AppDelegate to add the UIToolbar subview to your window.

[self.window addSubview:toolbarName];

If customizing the toolbar in IB, you can still do this, just add the toolbar to your AppDelegate as an IBOutlet and connect it in IB.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜