UIKeyboard avoidance and Auto Layout

后端 未结 6 837
梦谈多话
梦谈多话 2021-01-31 09:16

Given the focus on Auto Layout in iOS 6, and the recommendation by Apple engineers (see WWDC 2012 videos) that we no longer manipulate a views\' frame directly, how wou

6条回答
  •  青春惊慌失措
    2021-01-31 10:12

    Ive written a library that will do it all for you (supports Auto Layout and Springs & Struts)

    IHKeyboardAvoiding https://github.com/IdleHandsApps/IHKeyboardAvoiding

    Just call [IHKeyboardAvoiding setAvoidingView:self.myView];

提交回复
热议问题