开发者

UIScrollView placed in NIB file goes up when application starts

开发者 https://www.devze.com 2023-03-04 22:22 出处:网络
I have a view with two UILabel (simulating a header and a footer) and a UIScrollView placed between them vertically:

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

精彩评论

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