Example for iPhone portrait landscape adaptive UI which is backwards-compatible with iOS 7
I have read this thread
How can Xcode 6 adaptive UIs be backwards-compatible with iOS 7 and iOS 6?
and especially the answers from Dave and Joey.
Still I am having a hard time getting a simple example to work:
xcode 6, size classes enabled, iPhone iOS 7, uibutton width 100 on portrait mode, width 400 on landscape mode. And say width 600 on iPad.
I just can’t get this to work. I tried different combinations of setting width constraint, but either the button width is 100 in both orientation modes, or 400, but never different.
I would appreciate if someone could give me a guide, which constraints have to be set on which size class to achieve this.
Solutions Collect From Internet About “Example for iPhone portrait landscape adaptive UI which is backwards-compatible with iOS 7”
For iPhone, Deploying an App With Size Classes on Earlier iOS Versions said that the value of the height component should not be compact for earlier version. But in Adaptivity and Layout, the landscape mode of iPhone is Compact height and Compact Width, which means that iPhone landscape mode of size classes will not work for earlier version.
- UICollectionView not showing pictures
- Can one open a watchOS app from an iOS app?
- Swift Displaying Game Center Leaderboards
- Setting off a function in another class
- TouchMoved and wrong screen range? or Bug in iOS?
- Draw segments from a circle or donut
- NSString encoding returns nil on url content
- Xcode 5 – Could not build module
- optional chaining in Swift 3: why does one example work and not the other?
- How to compile a project with app and library in the same workspace with different configuration names?
- UDIDs in provisioning profile?
- How to put text over node in scenekit?
- fatal error: unexpectedly found nil while unwrapping an Optional value (cannot force unwrap value of non-optional type 'String')
- Set Background Gradient on Button in Swift
- Using contextInfo, UnsafeRawPointer in UIImageWriteToSavedPhotosAlbum – Swift 3