简体   繁体   中英

How to apply constraints on toolbar item

using storyboard, I have a toolbar and added 6 "Item" on it. when running it under simulator for iphone 4s, the 6 items are taking the whole width of the toolbar in portrait mode, while under iphone 6+, is left justified and taking about 3/4 of the space in the toolbar. How can I make these items to evenly distribute on all different iphone?

Thanks Borna

Figured the solution. I had to add Flexible space bar button between the item

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