Auto Layout is a constraint-based, descriptive layout system for OS X and iOS development.
0
votes
1answer
16 views
intrinsicContentSize vs. sizeThatFits. What's the difference? What are the use cases for each?
I understand that intrinisicContentSize is part of the AutoLayout API, but other than that, I'm seeing lots of functionality overlap between it and the -sizeThatFits method.
In what circumstance ...
0
votes
0answers
5 views
Centering zooming ScrollView image with constraints in lieu of explicit centering logic
Matt Neuburg's Programming iOS6 book demonstrates code (Chapter 20) for implementing a self centering iOS6 / Autolayout based zooming image view. The question I have, is is it not possible to write a ...
1
vote
1answer
42 views
Label on UIButton appears corrupted
I have a very simple view controller with some UIButtons of type UIRoundRectButton. They look okay in Interface Builder but on the device / simulator the text label appears to be clipped in a strange ...
0
votes
1answer
47 views
+50
AutoLayout constraints for a autoresizing view created in ViewController's loadView
My ViewController creates his view by overwriting the loadView method:
- (void)loadView {
UIView *view = [[UIView alloc] init];
view.autoresizingMask = ...
0
votes
2answers
406 views
From May 1 - iPhone 5 support - then what is the minimum iOS version appstore supports?
Apple posted in its developer news -
"starting May 1, new apps and app updates submitted to the App Store must be buit for iOS devices with Retina display and iPhone apps must also support the 4-inch ...
0
votes
1answer
50 views
UIView postion changes in retina display
I added a subview named LayoutView in my viewcontroller. LayoutView then added a subview named SectionView by the given code:
MSSectionView *sec1;
sec1 = [[MSSectionView ...
3
votes
2answers
23 views
Stop UITableViewCells from animating when animating a UITableView
I am animating a UITableView. I want the table view to slide open like this:
http://www.youtube.com/watch?v=XIGJLbiRsXE
However, it opens like this:
http://www.youtube.com/watch?v=UJUX-ILCB_0
...
8
votes
2answers
172 views
Can we have the effect of CGRectIntegral on iOS 6 auto-layout generated frames?
iOS 6 auto layout is pretty handy. However, the auto-generated frames may have non-integral values. How can I force integer output for final frame positions and size using auto layout?
1
vote
2answers
141 views
Cocoa Autolayout: content hugging vs content compression resistance priority
I don't found clear answer on Apple documentation regarded Cocoa Autolayout about difference between hugging and compression resistance.
Can somebody explain they usages and difference ?
2
votes
0answers
214 views
How can I expand UITableView to fill full screen on iPhone 5 using Interface Builder?
Is it possible to expand a UITableView with static cells to adjust automatically to the 4" iPhone 5 screen and expand the height of each UITableViewCell accordingly? If I create a simple UITableView ...
0
votes
1answer
24 views
UIImageView within UIView doesn't respect constraint
I have a UIView of size width: 285 and height: 243. Within that view, I have a UIImageView (it is within that UIView according to Storyboard). That UIImageView has width 283 and height 241 (so that ...
0
votes
2answers
43 views
Evenly spacing several rows of an arbitrary number of elements using NSLayoutConstraints
I have a question about using layout constraints for the following scenario. Everything is in code (no nibs or storyboards). I want to create a view that contains an arbitrary number of rows of items. ...
0
votes
1answer
33 views
Resize UITextView inside a UITableViewCell with iOS Autolayout
My Goal
I'm creating a custom UITableViewCell (MessageCell), and I'd wish to have my UITextView resizing both in width and height whenever the cell changes its size, while keeping some basic ...
1
vote
1answer
20 views
Trying to understand Auto Layout
I'm trying to understand how to use Auto Layout but I haven't been able to wrap my head around how to accomplish something like this using it. I have an iPad ViewController with two subview views. I'd ...
0
votes
1answer
25 views
How to use Autolayout Programmatically to give vertical space between views?
In my app i have to layout two views vertically according to each and want to make sure they look similar in iPhone 4&5.
Here's the code :
nextShowView = [[WestwoodNextShowView ...