阅读背景:

iOS:带有子视图控制器的Autolayout

来源:互联网 

I've been using autolayout for a couple of weeks now. Currently, I'm using a 3rd party library called FLKAutoLayout which makes the process easier. I'm at the point where I can construct views the way I want, usually without problem. However, over the past 4 days at work I've been struggling with autolayout once viewcontrollers are involved. I'm fine with all sorts of UIViews... but for some reason, every viewcontroller.view is a total demon. I've had nothing but problems getting a viewcontroller.view to size the way I want and an ever deeper problem is that UIViews of child viewcontrollers do not receive events properly when using autolayout. child viewcontrollers work just fine when designating frames manually, but everything breaks down with autolayout.I've been using autolayout for a couple of week




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: