开发者

Problem autosizing second view

开发者 https://www.devze.com 2022-12-24 05:17 出处:网络
Once a view is called from app开发者_如何学运维delegate, it is properly loaded but not autosized correctly, on the bottom you see last lines from previous view! On xib file, view mode property is set

Once a view is called from app开发者_如何学运维delegate, it is properly loaded but not autosized correctly, on the bottom you see last lines from previous view! On xib file, view mode property is set to scale to fill but I tried others and still happening the same... Thanks for any idea to solve it!


Maybe check Interface Builder, is the view using any of the Simulated User Interface Elements? That isn't directly answering your question but it might be worth a look, e.g. the status bar is normally simulated by default.


The standart way to control autosizing is by
self.View.autoresizingMask = UIViewAutoresizingFlexibleHeight(or st. else) self.View.autoresizesSubviews = YES;

You might also try to just set the size manually

0

精彩评论

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