swift - Too Many Items for Nav Bar Layout in iOS -


i need figuring out how fix layout of navigation bar in ios app. when adding navigation 'child' views of given screen, approach far has been add buttons 'leftbarbuttonitems' collection of uinavigation item. long number of buttons doesn't exceed 3 or 4 works great.

good nav bar

unfortunately, have screen requires additional buttons. seemed build fine, when run application end jumbled mess this:

bad nav bar

is there better way layout ui nav , toolbar buttons this? if putting buttons in nav bar correct way, need make layout handle cases content can't fit?

i wouldn't bother adding any buttons. users expect apps behave in similar ways, , (while technically possible) it's unusual thing do.

apple's hig states:

avoid crowding navigation bar many controls. in general, navigation bar should contain no more view’s current title, button, , 1 control manages view’s contents.

and, if choose ignore apple's hig, won't accessibility. users can (and will) change text size dynamic type - assertion it's ok if "number of buttons doesn't exceed 3 or 4" proven false someone.

you'd better add toolbar instead, or find other way of providing features.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -