简体   繁体   English

定位在iPhone5的底部

[英]Positioning on the bottom for iphone5

I'm getting really confused here. 我在这里真的很困惑。 My data picker is not positioning properly on the bottom of the screen. 我的数据选择器未正确放置在屏幕底部。 It's ok on 3,5' but not ok for 4'. 3,5'可以,但4'可以。 I can't use autolayout. 我不能使用自动版式。 I hope the language won't get you confused. 我希望这门语言不会让您感到困惑。 It's not relevant in this case. 在这种情况下无关紧要。

This is how it looks on size: Freeform 这是尺寸的样子:自由格式 编辑器-大小:自由格式

And here is a screen from editor. 这是编辑器的屏幕。 Size: Retina 4 Fullscreen. 大小:Retina 4全屏。 Other settings not changed 其他设置未更改 编辑器-大小:Retina 4全屏

And Finaly. 和终结。 This is how it actually looks on iphone5 simulator 这就是在iphone5模拟器上的实际外观 iphone5模拟器屏幕

What am I doing wrong here? 我在这里做错了什么?

尝试这个:

somecomponent.frame = cgrectmake(0,320,somecomponent.width,self.view.frame.size.height-(navbarheight+statusbarheight+tabbar height))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM