Questions tagged [adaptive-ui]

Adaptive UI was introduced with iOS8 to assist in responsive layouts.

Introduced with iOS8, Apple's Adaptive UI uses specific layout rules based on breakpoints (using classes) to adjust for pixel density across devices of different sizes.

53 questions
137
votes
8 answers

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

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…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
100
votes
7 answers

Sizing class for iPad portrait and Landscape Modes

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…
neelIVP
  • 1,001
  • 2
  • 8
  • 4
15
votes
3 answers

Adaptive UIPresentationController Based on View Size

I'm moving over to UIPresentationController based presentations for my view controllers but have run into some confusion with the API. I have a custom sidebar style view controller presentation (similar to the LookInside WWDC 2014 demo code). This…
simeon
  • 4,466
  • 2
  • 38
  • 42
15
votes
4 answers

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

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…
SeanR
  • 7,899
  • 6
  • 27
  • 38
13
votes
5 answers

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

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…
Mayank Jain
  • 5,663
  • 7
  • 32
  • 65
9
votes
1 answer

How should I present a UISearchController using a UISplitView adaptive user interface?

Using a universal storyboard with an adaptive UISplitViewController user interface. I want to present a search controller on the primary (master) side, using the following code (from the master view controller): static NSString * const…
user4151918
9
votes
2 answers

Different font size for UILabel using adaptive layout

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…
Arasuvel
  • 2,971
  • 1
  • 25
  • 40
6
votes
4 answers

Unwind segue doesn't dismiss adaptive popover presentation when not modal

Update for iOS 9 beta: Apple may have fixed this for iOS 9. If you work(ed) around this issue for iOS 8, make sure it also works correctly on iOS 9. In storyboard, I've created a popover presentation segue to present a navigation and view…
user4151918
6
votes
1 answer

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…
Tom Major
  • 283
  • 1
  • 12
4
votes
2 answers

IOS8 SplitVC + TabBarController + NavigationController

I'm doing a universal App using size classes and I'm trying to use a SplitView with a TabBarController in the Master/Primary View. Before adding the splitView all worked fine, but now the App crashes (the reason depends on the hierarchy of the…
3
votes
1 answer

How to convert binary image data to URI for same image in nodejs?

I am using one API to get a profile photo of a user. This api gets me the binary data for a profile photo. I need to be able to use this profile photo in form of a https://en.wikipedia.org/wiki/Data_URI_scheme example:- json that will render an…
Royjad
  • 99
  • 3
  • 13
3
votes
0 answers

Advice on achieving desired, adaptive UISplitViewController behaviors in iOS 8+

I'm trying to achieve a set of adaptive behaviors with a Master/Detail UISplitViewController in iOS 8+ that seem to me intuitive, but are not (so far as I have been able to discover) "typical" of Apple's examples or implemented in any of the various…
3
votes
1 answer

Can't customize UINavigationBar in with Show Detail Segue

In videDidLoad I have code that setup navigation bar in Detail view controller UIImage *emptyImage = [UIImage new]; [self.navigationController.navigationBar setBackgroundImage:emptyImage…
sarunw
  • 8,036
  • 11
  • 48
  • 84
3
votes
1 answer

Xcode 6 Adaptive Storyboard different Segues per Device

I've some troubles with the newly introduced adaptive storyboard in Xcode 6. The iPhone App is finished and now I want to create a universal app out of it. Let's assume I've a viewcontroller that displayes some cells and a detail viewcontroller in…
Chris
  • 3,057
  • 5
  • 37
  • 63
3
votes
1 answer

AutoLayout Xcode6: Need autolayout constraints for this:

I am new in autolayout (I am good in autoresizing). My requirement is:- I have 2 view (say blue and green, width and height of both view is 300 pixel in iPhone5). height and width of both view can change according to screen resolution. X and Y…
Mayank Jain
  • 5,663
  • 7
  • 32
  • 65
1
2 3 4