size-classes

UISplitViewController - set always visible master controller when

℡╲_俬逩灬. 提交于 2019-12-10 22:28:46
问题 I've studied examples of split view (like this one) and it works great. I just need one change of behavior. I would like to have both master and detail controller visible when user have iPad in portrait. It should work just like FB Messenger or Skype. Both controllers side-by-side and without able to hide master controller. How is it possible to do that? Thanks for help Bonus question: Is it possible to somehow set behavior for iPad portrait be same like iPhone portrait? If I would change my

How do I handle iPhone 6S Plus's font size?

早过忘川 提交于 2019-12-10 03:54:49
问题 iPhone 6S Plus's screen is very big compared to other screen sizes. I can't seem to find a good way to handle the font size of a label without adjusting the size programmatically. How can I adjust the font size of a label so that it looks smaller on an iPhone 5 and bigger on an iPhone 6 Plus? 回答1: Don't change font sizes for the iPhone 6 or iPhone 6+. People buy these phones to see more content. The 6+ displays things slightly bigger than the other phones anyway (yes, it has bigger pixels,

Different font size for UILabel using adaptive layout

谁说胖子不能爱 提交于 2019-12-10 02:36:54
问题 In Xcode 6 we have a new feature called adaptive layout. By using that I have created a new project in which it I need to have different font size based on the layout. In iPhone 3.5 inch screen I must have font size as 17pt, and other screen size in iPhone must be 21pt. Can anyone tell me how I can achieve this using adaptive layout? 回答1: Yes, you can do with storyboad. There is a + sign on the left of the font, click it and select the size class and choose the font size needed 回答2: In

How do I reset specific size class data on a storyboard in Xcode6?

落花浮王杯 提交于 2019-12-09 16:01:29
问题 I am using size classes to create a storyboard that can target all the various screen sizes and orientations. I have been working in the Any Width-Any Height size class. I ran into a display issue and decided to make those changes in the Compact Width - Regular Height size class. At a Later time, I was able to resolve my layout issue by making constraint changes to the Any Width-Any Height size class. How can I revert the changes made to the Compact Width - Regular Height size class so that

iOS8: class size w:Regular h:Compact To w:Any h:Any

こ雲淡風輕ζ 提交于 2019-12-08 06:13:29
问题 I've made my storyboard support only w:Regular h:Compact. Cause i needed to support all devices in landscape. But I've figure that it's not supporting iPad that way. When i run iPad it just a blank page. I tried to convert it to any:any but it hide all the sub views. Is there anyway to convert this class size to any:any to support all without risking redo all this work? Or at least I need a way to make it only for iPad? 回答1: First of all, wRegular hCompact is for iPhone 6 Plus in landscape,

Different size classes for iPad portrait and landscape modes with containerviews

大憨熊 提交于 2019-12-07 14:44:34
问题 I've found this question and I've tried to implement the solution that has been given. However I run into a problem. My initial view controller has two container views who both have their own view controller. I've created a root view controller that is assigned to the initial view controller. The code in this class looks like this. class RootViewController: UIViewController { var willTransitionToPortrait: Bool! var traitCollection_CompactRegular: UITraitCollection! var traitCollection_AnyAny:

Adaptive layout for iPad

会有一股神秘感。 提交于 2019-12-07 04:47:10
问题 I am following this article for building adaptive layout in ios Building Adaptive User Interfaces for iOS 8. It will work fine on iPhones . Now i wan't to give the same effect on iPad. But for iPad adaptive layout is not work. Here is screenshot of application in iPhone5 (green box represent view1 and yellow box represent view2) 1.Portrait mode Landscape mode Question : how can achieve same effect for iPad? Expanded Question: How to set up initial orientation of iPad in landscape mode? 回答1:

Size Classes to distinguish between iPhone 5, 6 and 6 Plus?

北慕城南 提交于 2019-12-06 21:33:44
问题 I was very happy to learn that Size Classes are backward compatible with iOS 7 (in some cases). Now I'm wondering - is there a way to use Size Classes to distinguish between iPhone 5, 6 and 6 Plus? 回答1: No. Quite the opposite actually, size classes are used to abstract the device away. These are the currently used size class: compact width, compact height: 3.5", 4", 4.7" iPhones in Landscape mode compact width, regular height: all currently available iPhones in Portrait regular width, compact

iOS8: class size w:Regular h:Compact To w:Any h:Any

[亡魂溺海] 提交于 2019-12-06 16:26:22
I've made my storyboard support only w:Regular h:Compact. Cause i needed to support all devices in landscape. But I've figure that it's not supporting iPad that way. When i run iPad it just a blank page. I tried to convert it to any:any but it hide all the sub views. Is there anyway to convert this class size to any:any to support all without risking redo all this work? Or at least I need a way to make it only for iPad? First of all, wRegular hCompact is for iPhone 6 Plus in landscape, not iPads in landscape: Be sure to check the description at the bottom of the size class choice. If you want

what are the size classes for the new iPhone X models?

☆樱花仙子☆ 提交于 2019-12-06 13:52:02
问题 Apple has introduced three new iPhone X models: the iPhone XR, XS, and XS Max. What are their size classes, and how do these compare to other iPhone models? 回答1: I'll give three pieces of information for each model: the size classes when in portrait, the size classes when in landscape, and the screen resolution. ↔︎ means horizontal (width) size class ↕︎ means vertical (height) size class The good old-fashioned standard is something like the iPhone 6s: iPhone 6s: ↔︎ compact, ↕︎ regular; ↔︎