Tagged Questions
0
votes
0answers
17 views
Autolayout Error with UITableView
I have a UITableView and I specify the height for each cell using the delegate method cell height for row at index path.
when I rotate the view I get this error that I don't quite understand
it ...
1
vote
3answers
52 views
Using Auto Layouts while 4 screen app running in 3.5 screen
I developed a app for iPhone5 i enabled Use Auto Layouts.I have taken vertical space 40 for each button to its another button . when i run this app on iPhone4s the last button is not appeared.I.How to ...
0
votes
1answer
21 views
IOS set element width constraint to 0 when in located inside UITableViewCell
IOS 6 with auto layout mode.
I have UITableView with Custom UITableViewCell.
It has two UILabels (Header and Status)
When item status is empty i am need to set Status constraints width to zero, to ...
0
votes
1answer
25 views
meaning of Constraints attributes in NSAutoLayoutConstraints
I want to use constraints in my program. I want to create them programmatically .
So can anybody please help me to find out the meaning of following NSLayout Attributes
NSLayoutAttributeLeft = 1,
...
-1
votes
1answer
34 views
How can I make my UINavigationBar not look all scrunched up?
Following these instructions of making a view controller with two child controllers that pans similar to a sidebar layout, makes my navigation bar look all scrunched up when the sidebar is opened.
...
3
votes
1answer
47 views
Autolayout, programed vs interface builder
Just to add a view that lives in the same parent view as the other two related views.
self.vDist = [[UILabel alloc] initWithFrame:CGRectMake(20, 20, 42, 21)];
[self.vDist ...
0
votes
2answers
36 views
autoLayout resize buttons for Retina 3.5/4"
I have a view with buttons optimized for iPhone 4. The buttons fill the whole screen. If the user have a phone with retina I want the buttons to still fill the screen. If the user have a iPhone 4 the ...
0
votes
2answers
39 views
How can I move across two child view controllers with autolayout?
I'm making a view controller with a left sidebar container view and a main container view that is a navigation controller.
Here's a picture of it:
I'm using autolayout so I may only use ...
0
votes
1answer
29 views
How do I shift two UIViews 270px to the right in AutoLayout in code?
I have a UIView that is offscreen 400 pixels to the left and is 280 pixels wide.
I'm trying to shift the main UIView to the right 280 pixels and to have the offscreen UIView move onscreen to the ...
0
votes
1answer
32 views
Changing element left, top, width and height constraints at runtime
For the purpose of a framework that I am creating I need to setup UIView objects frame property but while the AutoLayout is on I can't do it.
My idea is that I could remove all layout constraints ...
1
vote
1answer
39 views
Changing constraints with auto layout
I have a grid of square buttons in a view, that fits perfectly on the iPhone 5. I now want it to look good on the 3.5-inch screen as well. I am using auto layout, and I have created new images for the ...
5
votes
2answers
90 views
Resize a UITextField while typing (by using Autolayout)
I have a UITableViewCell which has two UITextFields (without borders). The following constraints are used to set up the horizontal layout.
...
1
vote
1answer
33 views
NSLayoutConstraints code to center a view and maintain it's aspect ratio
I'd like my subview to be a 16:9 rectangle centered at the top of it's superview. In other words, I'd like it to:
be as wide as it's superview, but no wider than 400px (UI can rotate to landscape),
...
0
votes
2answers
39 views
How to use NSNumber or CGFloat constant in Autolayout visual format language?
I'm trying to set top and bottom paddings to a view in Autolayout using the visual format language. The code compiles and works if I write the paddings as integers in visual format string, but it ...
1
vote
1answer
40 views
Animating NSLayoutConstraints changes (and the objects that have constraints to the changed one)
I have an UIImageView object which is goes on and off screen at the touch of a UIButton, and I'm doing that by changing it's NSLayoutConstraints. I have successfully animated that 'movement' using the ...