objective c - Resizing scroll view with auto layout? -
it's common technique wrap content in uiscrollview
purpose of moving out of way when keyboard appears. done modifying frame/bounds of scroll view, encompasses area not covered keyboard. according ole begemann, 1 shouldn't use frame
property when using autolayout.
how 1 accomplish same effect without using frame?
you can create outlet constraint(s) in ib, e.g. constraint connects bottom of uiscrollview
superview, , use code change constant of constraint. can animated in animation block.
self.someconstraint.constant = ...;
Comments
Post a Comment