Size Class Issues - Also need a size class key

旧巷老猫 提交于 2019-12-12 01:54:49

问题


In Xcode I am having an issue with the size classes in my app. I am unable to get the right size classes to show that seem to work for all of my different devices. I kind of would like a key to see what the size classes should really be, also the size classes don't seem to really match up.

Below is an image attached of an example. I can't get anything correct. I am new to this and I know that I am doing something wrong.

Also, I tried this: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LayoutandAppearance.html but it didn't match up. Maybe my controls have a layout issue?

Edit: Shown below, I can't modify the leading edges and trailing edges...


回答1:


Whoo Hooo!!! I figured it out!!! @nburk, I want to give you some credit too. You said the key words trailing space and leading space so I googled more on that, and I was seeing the wrong thing.

I want to recommend this to all users who are having problems with it. I didn't realize that dragging the constraints using the control button would actually do it.

https://www.youtube.com/watch?v=IwSTXY0awng

Bill.



来源:https://stackoverflow.com/questions/27470900/size-class-issues-also-need-a-size-class-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!