开发者

iOS sdk custom navigation bar type top bar in iphone app

i'm woking on my first iphone app. the app uses a tab bar template, the current iteration of the app doesn't use a navigation controller, but now i need someway of presenting an action sheet in one of the views to allow users to save images to the photos app or e-mail the same image and even more importantly for the app let them use air print to print the image they are viewing. for the look and feel to stay consistent i need something like a system navigation bar; something that looks like one, that would allow me to place a button inside it so that then users could tap that to get the action sheet.

what is the best way of doing that? would this top bar have to be like any other view in the hierarchy? can i place any type of button inside any view? a button icon like the system one that the action one? (in the human interface guidelines - system buttons开发者_开发技巧/icons). many apps implement this type of thing but like i said it's my first one.

thanks in advance


Use a UIToolbar. It looks and acts pretty similar to a UINavigationBar. You can place it anywhere as it is just a subclass of UIView.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜