简体   繁体   中英

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM