UI未填入iPhone 6 plus [英] UI doesn't fill in iPhone 6 plus

查看:96
本文介绍了UI未填入iPhone 6 plus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个iOS应用,并且意识到当它在iPhone 6 plus中运行时,ui不会自动拉伸以适合屏幕. 因此,用户界面位于左侧的右侧,底部和右侧有很多空白.

I'm working on an iOS app and realize the ui is not auto stretch to fit the screen when it's running in iPhone 6 plus. So the UI is on the right left, and there are a lot of white space in the bottom and right.

如果将视图的宽度设置为超过320(例如400),则视图的宽度将大于320.

If I set the width of a view to beyond 320 (ex. 400), then the view be wider than 320.

如何使我的视图自动拉伸以填满屏幕?

How could I make my views auto stretch to fill the screen?

我还有其他一些应用程序,它们在iPhone 6 plus上运行良好.

I have a few other apps, and they works perfectly fine in iPhone 6 plus.

我不知道是什么导致了该应用程序的用户界面无法自动拉伸. 我能想到的唯一区别是,这是在正式发布xcode 6之后创建的,其他都是在xcode 6 beta版本中创建的.

I couldn't figure out what make this app's ui not auto stretching. The only difference I could think of it this one is create after the official xcode 6 is released, the others were created in xcode 6 beta version

谢谢!

推荐答案

您应该开始使用自动布局.从这里开始:自动布局指南

You should start using auto-layouts. Start from here: Auto layout guide

这篇关于UI未填入iPhone 6 plus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆