ios: uiscrollview 和 uiview 自动布局
ios: uiscrollview and uiview autolayout
我有 uiscrollview
和 uiview
。触摸 uitextview
时,uitextview
尺寸会变大,uiscrollview
尺寸会变小,自动布局会出现问题。
如何设置 uiscrollview
和 uiview
的约束条件?
可以试试:
我下面说的是约束:
UIScrollView 上、左、右等于self.view 上、左、右
UIScrollView 底部等于 UIView 底部
UIView left, right, bottom 等于self.view left, right, bottom
UIView高度等于200(你设置的)
好的,当你的 UITextView 被触摸时,将 UIView 高度限制设置为你想要的(可能是 300)
我觉得可行!
我有 uiscrollview
和 uiview
。触摸 uitextview
时,uitextview
尺寸会变大,uiscrollview
尺寸会变小,自动布局会出现问题。
如何设置 uiscrollview
和 uiview
的约束条件?
可以试试:
我下面说的是约束:
UIScrollView 上、左、右等于self.view 上、左、右
UIScrollView 底部等于 UIView 底部
UIView left, right, bottom 等于self.view left, right, bottom
UIView高度等于200(你设置的)
好的,当你的 UITextView 被触摸时,将 UIView 高度限制设置为你想要的(可能是 300)
我觉得可行!