简体   繁体   English

iOS Universal APP Center问题

[英]IOS Universal APP center issue

I'm Developing a iOS APP for 2 devices iPhone and iPad I am using 1 storyboard and thats the one for iPhone I also checked 'Use Auto layout'. 我正在为2台设备iPhone和iPad开发一个iOS APP,我正在使用1个情节提要,这就是iPhone上的一个,我也选中了“使用自动布局”。

When I starts my app on the debugger on iPhone everything looks fine and nice when I start it on iPad 2, it also looks nice but my login screen is stick to left I put my form element inside the UIScrollView how do I center everything since iPad has a bigger screen size. 当我在iPhone上的调试器上启动我的应用程序时,在iPad 2上启动时,一切看起来都很好,看起来也不错,但是我的登录屏幕仍然停留在左边,我将表单元素放在UIScrollView中,如何自iPad以来将所有内容居中屏幕尺寸更大。

what I have tried: 我尝试过的

self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 2, 2);

but this looks very uggly and blurry. 但这看起来非常粗糙和模糊。 so not worth it. 所以不值得。

我使用2个情节提要板,我忘了使用已解决xcode问题的即时消息!

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

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