ios - Changed frame returns to default when view disappears and appears again -
i have tab bar application using storyboard , in 1 view, alter frame of uibutton animated within method. thing method continuing while tab bar item presented (so view controller not dismissed disappeared) when first view appears again, button frame had changed in default position again, set in interface builder. know if there's easy way prevent behaviour , maintain current frames when view disappears?
are using auto layout? (storyboard > utilities (right panel) > file inspector - has utilize auto layout checkbox). if so, seek uncheck it. if works right, need alter layout constrains
, not frame
. parameters frame
, center
ignored under auto layout. instead, constrains have parameter called constant
can changed , animated.
ios objective-c frame
No comments:
Post a Comment