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
43 views

Dynamic uiview layout with auto layout

I'm working with autolayout and its been going very well so far but right now I am at lost as to the way to proceed to achieve the design I want. I got a a small questionnaire with 2 sections. Each ...
2
votes
1answer
6k views

Implementing auto layout for views generated programmatically

I have an app whose views are generated programmatically. Example: -(void)loadView { [super loadView]; // SET TOP LEFT BTN FOR NEXT VIEW UIBarButtonItem *topLeftBtn = [[UIBarButtonItem alloc] ...
5
votes
3answers
3k views

AutoLayout to keep view sizes proportional

I'm trying to achieve the following: I have 2 views in my xib that need to stay 20 pixels off the edge (both sides and top) The 2 views that need to resize aren't the same size They have to be 20 ...
5
votes
1answer
114 views

“Width equals height” constraint in Interface Builder

I can't find a way to create a 'square' constraint, meening 'width equals height' in Interface Builder. I guess it's posible to add such constraint programmatically. Is there something I can do in IB? ...
3
votes
1answer
89 views

CGRectMake doesn't work for custom frames in viewDidLayoutSubviews

This is the code I'm using: -(void)viewDidLayoutSubviews{ CGSize screenSize = [[UIScreen mainScreen] bounds].size; if (screenSize.height <= 480.0f) { self.img.frame = ...
0
votes
2answers
48 views

Positioning UI controls without relying on centers

I'm creating a sample login screen to practice Auto Layout. In portrait mode, it looks like this. However when I rotate to landspace mode, it looks like this. Below are the constraints I have ...
1
vote
1answer
615 views

How to avoid Interface Builder adding a width constraint to an NSPopUpButton?

The title pretty much says it all. In Interface Builder in Xcode 4.3 on Lion using Auto Layout, if you add a normal button to a view, Xcode will add constraints that pin the button to one of the ...
0
votes
0answers
59 views

iOS storyboard, autolayout: IB munges width of UIDatePicker

I'm building a storyboard for iPhone 5, iOS 6, using Xcode 4.6.1. One of my scenes, for a UIViewController subclass, includes a UIDatePicker in the root view. The height of UIDatePicker is fixed, ...
0
votes
0answers
26 views

is there a standard recipe for: Creating a 'WidgetView' subclass of UIView that behaves nicely with NSLayoutConstraints and AutoLayout

Is there a standard recipe for creating UIView subclasses with NSLayoutConstraints using XIBs all I want is to design custom UIView that holds a few labels (weekday, date and month). The visual ...
0
votes
0answers
47 views

Volume slider disappears when using Auto Layout

I have an app which plays streamed radio stations. I've recently updated it for iPhone 5 and iPad For the most part auto layout takes care of the hard work aside from my custom table which I resize ...
6
votes
6answers
5k views

Can I disable autolayout for a specific subview at runtime?

I have a view that needs to have its frame manipulated programmatically - it's a kind of document view that wraps to its content which is then scrolled and zoomed around a superview by manipulating ...
1
vote
1answer
108 views

Autolayout margins between buttons are incorrect only on 4" screen

I have a bunch of views that look perfect on a 3.5 inch screen. When I test it on the iPhone 5 simulator, which has a 4 inch screen, the padding between the buttons is way off. It is not just for ...
0
votes
1answer
44 views

Put a view in the bottom of another view with a fixed size

Sorry folks if my question seems to be trivial, but xcode drives me crazy. I don't want anything else, just put a view in the bottom of a view controller in XCode by IB, that has FIXED height even if ...
1
vote
1answer
111 views

Arranging UIButtons evenly on 3.5” and 4” display

I have now used a lot of time figuring out - auto layout and how to use it, but haven't found an answer on how to solve this issue. My issue is that I want to align e.g. 5 vertically placed UIButtons ...

1 2 3
15 30 50 per page