adaptive-ui

Adaptive launch screen storyboards: is there a way to differentiate iPad orientations?

倾然丶 夕夏残阳落幕 提交于 2019-11-28 12:01:58
I'm investigating the use of a storyboard for launch images for my app. The app has always used a large photo for the launch image, which is also used as the background for the first view. However the image is different when the app is launched in landscape on an iPad. So is there any way to differentiate between an iPad in portrait and an iPad in landscape when using a an Adaptive storyboard for a launch screen? Because it's a launch screen I can't run any code, it would have to be done completely through the storyboard. I found a solution using spacer views that position the correct image in

Autolayout: origin and size should change according to width and height factor

落花浮王杯 提交于 2019-11-28 09:55:20
Here is a scenario what I needed. I have put a UIButton on IB (size iPhone4 inch) whose initial frame on IB is x:100,y:100,w:100,h:100 . I want the origins and height should change according to device size. for example the width and height of iPhone6 is 375X667, hence the width factor (375/320=1.1718) and height factor (667/568=1.1742) . In this scene I want to change my buttons origin X and width with multiply by width factor (1.1718) and origin Y and height with multiply by height factor (1.1782) . In this case my button should be shown on x:100X1.1718, y:100X1.1742, w:100X1.1718, h:100X1

Adaptive launch screen storyboards: is there a way to differentiate iPad orientations?

左心房为你撑大大i 提交于 2019-11-27 19:22:40
问题 I'm investigating the use of a storyboard for launch images for my app. The app has always used a large photo for the launch image, which is also used as the background for the first view. However the image is different when the app is launched in landscape on an iPad. So is there any way to differentiate between an iPad in portrait and an iPad in landscape when using a an Adaptive storyboard for a launch screen? Because it's a launch screen I can't run any code, it would have to be done

Autolayout: origin and size should change according to width and height factor

半世苍凉 提交于 2019-11-27 05:52:44
问题 Here is a scenario what I needed. I have put a UIButton on IB (size iPhone4 inch) whose initial frame on IB is x:100,y:100,w:100,h:100 . I want the origins and height should change according to device size. for example the width and height of iPhone6 is 375X667, hence the width factor (375/320=1.1718) and height factor (667/568=1.1742) . In this scene I want to change my buttons origin X and width with multiply by width factor (1.1718) and origin Y and height with multiply by height factor (1

How can Xcode 6 adaptive UIs be backwards-compatible with iOS 7 and iOS 6?

≡放荡痞女 提交于 2019-11-26 11:57:34
I just watched the WWDC video #216, "Building Adaptive UI with UIKit." At about 45:10 Tony Ricciardi talks about changes to IB in Xcode 6 to support the new changes. He says "You can deploy these documents backwards to older versions of iOS". (where "These documents" presumably means XIBs and storyboards that have specific settings for different size classes.) I'm not making this up. Go watch the WWDC video. How is that possible? Trait collections and size classes are only defined in iOS 8. How can runtime behavior that's dependent on UI constructs that are new to iOS 8 work in previous iOS

How can Xcode 6 adaptive UIs be backwards-compatible with iOS 7 and iOS 6?

烂漫一生 提交于 2019-11-26 03:34:49
问题 I just watched the WWDC video #216, \"Building Adaptive UI with UIKit.\" At about 45:10 Tony Ricciardi talks about changes to IB in Xcode 6 to support the new changes. He says \"You can deploy these documents backwards to older versions of iOS\". (where \"These documents\" presumably means XIBs and storyboards that have specific settings for different size classes.) I\'m not making this up. Go watch the WWDC video. How is that possible? Trait collections and size classes are only defined in

Sizing class for iPad portrait and Landscape Modes

。_饼干妹妹 提交于 2019-11-26 01:55:49
问题 I basically want to have my subviews positioned differently depending upon the orientation of the iPad (Portrait or Landscape) using Sizing Classes introduced in xcode 6. I have found numerous tutorials explaining how different sizing classes are available for Iphones in portrait and landscape on the IB but however there seem to be none that cover individual landscape or portrait modes for the iPad on IB. Can anyone help? 回答1: It appears to be Apple's intent to treat both iPad orientations as