开发者

UIScrollView placed in NIB file goes up when application starts

I have a view with two UILabel (simulating a header and a footer) and a UIScrollView placed between them vertically:

UIScrollView placed in NIB file goes up when application starts

However, if I start the application in simulator the UIScrollV开发者_开发问答iew goes a few pixels up while the rest of elements remain in their position:

UIScrollView placed in NIB file goes up when application starts

Is it normal that behaviour? How can I place the UIScrollView exactly at the position I want?

Thanks!


This looks like you have set the scrollview to have a flexible height, but fixed bottom margin. Check the springs and struts settings for your view, found in layout page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜