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.
unfortunately, have screen requires additional buttons. seemed build fine, when run application end jumbled mess this:
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
Post a Comment