IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

It moves up subview rather than superview

Open lusnaow opened this issue 11 years ago • 3 comments

I have a UIView in my UIViewController's view, and some buttons in that UIView. The UIView is at the bottom of some UITextField. When I click one UITextField,It moves up subview rather than superview aka the UIViewController's view. How can I let it move up the UIViewController's view rather than any subView?

lusnaow avatar Apr 23 '15 08:04 lusnaow

May you're pinning your textField from TopLayoutGuide, or pinning some related view from topLayoutGuide. Can you please check storyboard and let me know if this was the issue?

hackiftekhar avatar Apr 23 '15 09:04 hackiftekhar

After I disabled the AutoLayout, it works well now.Thanks a lot.

lusnaow avatar Apr 24 '15 02:04 lusnaow

Autolayout is a powerful tool. I suggest you to go with autolayout (not disable) with correct configuration.

hackiftekhar avatar Apr 24 '15 04:04 hackiftekhar