iOS Autolayout and UIToolbar/UIBarButtonItems -



iOS Autolayout and UIToolbar/UIBarButtonItems -

i have ios view autolayout enabled , have uitoolbar uisearchbar , uisegmentcontrol contained toolbar. want uisearchbar have flexible width need add together constraint forcefulness this, can tell cannot add together constraints items in uitoolbar in interface builder. options disabled.

before autolayout accomplish autoresizingmasks.

are constraints not allowed within uitoolbars/uinavigationbars?

how else can accomplished when using autolayout?

autolayout constraints work uiviews , subclasses.

while uitoolbar allows uiview based items (such uisearchbar , uisegmentedcontrol) may have coexist uibarbuttonitems not inherit uiview.

until autolayout can work uibarbuttonitems, have done.

your alternative roll own toolbar widgets based on uiviews.

ios uibarbuttonitem uitoolbar autolayout autoresizingmask

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -