objective c - UITextField on UIScrollView (iOS 8.x only) -
objective c - UITextField on UIScrollView (iOS 8.x only) -
i have view subclass of uiscrollview , uitextfield on uiscrollview. i'll refer subclass of uiscrollview 'cuscrollview'.
the purpose of cuscrollview when user input text, button has title of text added on cuscrollview. offset of uitextfield move @ right of lastly added button.
this how cuscrollview like.
below ios 8.x, works perfectly; doesn't on ios 8.x.
when uitextfield resigned first responder, cuscrollview's contentsize reset cuscrollview's frame width.
i found work around. overrided setcontentsize: , set contentsize whatever want.
is bug? or kind of auto layout mistake?
first of don't mix auto layout setting frame's manually. if perform error in autlayout.
objective-c uiscrollview ios8 uitextfield autolayout
Comments
Post a Comment