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
3
votes
1 answer

Implementing ScrollView in XCode6 with Adaptive Layout and Storyboard

I have an input page with labels and buttons that is too long to fit on the screen of any of the iPhones. I want to let the user scroll vertically to make all the inputs. I'd like to do the layout in storyboard. All the suggested answers I can find…
tangobango
  • 381
  • 1
  • 4
  • 17
2
votes
1 answer

heap corruption windows 10

In our Windows 10 UWP app we are suffering from Heap corruption during random page navigations. The timing and location is always different yet the same result is there, Heap corruption when Native debugging is turned on and an immediate crash when…
2
votes
0 answers

Adaptive Layout Full Screen Image

Using Adaptive Layout, what is the best or recommended approach for displaying a full screen background image to ensure it works on all devices, both orientations? Is it a case of making an image the largest possible size (iPad Pro) and then scaling…
MikeJ
  • 2,367
  • 3
  • 18
  • 23
2
votes
1 answer

Adapting between two different UIPresentationController's

I would like to adapt between two different UIPresentationController, according to the current trait collection. For example, the two controllers could be UIPopoverPresentationController for any traits and a custom UIPresentationController for…
2
votes
2 answers

How to change the value of 'mutiplier' property of NSLayoutConstarint in iOS8

I use Adaptive layout features for designing an app. I take a IBOutlet of an "Aspect Ratio" constraint . I want to change the value of this Aspect Ratio Value to the double of current value. The problem is that "constraint" property can be set…
Rabindra Nath Nandi
  • 1,433
  • 1
  • 15
  • 28
2
votes
0 answers

What UITraitCollection does systemLayoutSizeFittingSize: use?

What UITraitCollection does -[UIView systemLayoutSizeFittingSize:] use, when it is not attached to view hierarchy? I think UIKit could guess it from [UIScreen mainScreen], but this looks ambiguous to me. Moreover, it will not take into account…
Oleksii Taran
  • 348
  • 3
  • 10
2
votes
2 answers

Xcode6 Interface Builder constraints not stretching subviews

Xcode Interface Builder is driving me nuts and I've spent most of my day googling for a solution. I have a storyboard with a CollectionViewCell that contains a UIImageView. The CollectionViewCell size is 125 x 125 and Autoresize subviews is…
cridgit
  • 183
  • 8
2
votes
1 answer

Custom size class for child view controller

I have an embedded UIViewController that is intended to take up the full width and some fraction of the height of its parent. I expect it to take on vastly different heights for different scenarios within the same size class of its parent. I would…
blackp
  • 1,752
  • 3
  • 13
  • 14
1
vote
0 answers

Adaptive segue with existing UINavigationController

I have a modal (form sheet) segue in my application on the iPad that changes to a UINavigationController when the horizontalSizeClass is regular. To achieve that, I am using UIAdaptivePresentationControllerDelegate as in the code below: extension…
Dadevape
  • 11
  • 2
1
vote
1 answer

pushViewController vs showDetailViewController

Should I use UISplitViewController's showViewController: & showDetailViewController: methods alone to push/present view controllers from iOS 8? I try to convert my app with adaptive UI. So using splitview controller as a rootviewcontroller. But…
Confused
  • 3,846
  • 7
  • 45
  • 72
1
vote
0 answers

Scale UIBezierPath for different screen sizes?

I want to understand what's the correct way to scale shapes of bezier curves for different screen sizes. Say, I've made an icon for a UIButton using UIBezierPath like this: UIBezierPath* rectanglePath = [UIBezierPath bezierPath]; [rectanglePath…
Grigory
  • 992
  • 2
  • 18
  • 34
1
vote
2 answers

Problems with scaling interface from a device to another in iOS

This issue is really frustrating and getting me crazy. I've read everything about AutoLayout and so on, but it happens all the time. My interface has a view with an image view as background and a smaller subview on top of it (corresponding to a…
1
vote
1 answer

Change font size by using size classes

I am using size classes in my storyboard to create adaptive layout and I have attributed UILabels in it. Now I want to change the font size for iPad of these labels but it seems that size classes for UILabel with attributed text is not available in…
Narender Tak
  • 241
  • 2
  • 12
1
vote
3 answers

ios adaptive layout / size classes to target specific phone size?

I've lost what's left of my mind messing with adaptive layout and size classes. Not that I was a genius to begin with, but now I'm bald. Say I have a very simple layout that I want to make sure looks perfect ( and by perfect I mean all my ui…
Sam Luther
  • 1,170
  • 3
  • 18
  • 38
1
vote
0 answers

Uninstalled container view's embed segue performed

I have a container view not which is not installed on iPhone, but installed on iPad. But the embed segue is performed in iPhone anyway. I use shouldPerformSegueWithIdentifier to prevent it but I am not sure it is the best way. Because container view…
osrl
  • 8,168
  • 8
  • 36
  • 57