开发者

Create UIToolbar in UIViewController without navigation controller

开发者 https://www.devze.com 2023-02-02 20:20 出处:网络
I have create a nib that is a UIViewController and have drag a UIToolbar to my interface using the nib.I have make the necessary link of the toolbar in nib to the IBOutlet UIToolbar开发者_如何学Go cla

I have create a nib that is a UIViewController and have drag a UIToolbar to my interface using the nib. I have make the necessary link of the toolbar in nib to the IBOutlet UIToolbar开发者_如何学Go class variable. When I run the app, the toolbar did not appear. Am I missing out something? I have also create the @property and @syntesize for the class variable.

Thanks.


I had a similar problem on the iPad.

By default the toolbar added with the interface builder is positioned at the bottom of the view (and in my case it didn't appear at all).

When I changed the toolbar position (using the Size/Autosizing inspector) to stick at the top, where I wanted it, the toolbar appeared.

0

精彩评论

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