Questions tagged [interface-builder]

Interface Builder is a visual design tool used to create user interfaces for Apple's macOS and iOS platforms.

is a visual design tool used to create user interfaces for Apple's and platforms. It is part of , Apple's . allows , and developers to visually compose interfaces for applications. The resultant interface is stored as a file (short for XML Interface Builder) and is compiled to a file at build time (short for NeXT ).

6236 questions
42
votes
8 answers

How to sync localized storyboards' strings after modifying storyboard in Xcode 5

I'm just starting to look at IOS Apps' localization in XCode 5 and I've tried to add an Italian Localization: Xcode 5 automatically generates the Main.strings file with a single entry, for the only label I've put within the Main.storyboard file: /*…
Gianni Costanzi
  • 6,054
  • 11
  • 48
  • 74
42
votes
2 answers

Springs in Auto Layout: Distribute views evenly, with constraints, in Xcode 5

I understand the old Struts and Springs method of aligning, sizing and distributing views in Interface Builder. However, I cannot seem to figure out how to evenly distribute views using auto layout with Xcode 5. There was a way to do it using Xcode…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
41
votes
7 answers

Xcode & Swift - Window without title bar but with close, minimize and resize buttons

I am currently using Swift in Xcode 6, Beta 5. I am trying to remove the title bar, or any visible difference between the title bar and the actual content. If I enable "Unified title and toolbar" in the Attributes Inspector on a Window, nothing…
Isaiah
  • 1,852
  • 4
  • 23
  • 48
41
votes
8 answers

Alternative iOS layouts for portrait and landscape using just one .xib file

Using interface builder in xcode and just one .xib file, how can I create alternate layouts when rotating between landscape and portrait orientations? See diagram of differing layouts N.b. the green view/area would contain 3 items flowing…
Dave Haigh
  • 4,369
  • 5
  • 34
  • 56
40
votes
7 answers

Center Multi-Line Text on UIButton using IB

How do you center text line-by-line in a UIButton using Interface Builder? I am scouring the options and just don't see it. Here's the button:
sdknewbie
  • 659
  • 2
  • 9
  • 13
40
votes
3 answers

What is the "Mode" property in Interface Builder which offers "Scale to fill", "Aspect fit" etc.?

I'm wondering what the dropdown "Mode" is about? It contains "Scale to fill", "Aspect fit" and so on. I never had to change it so far, still I'm curious what it can be used for. Can somebody explain?
Krumelur
  • 32,180
  • 27
  • 124
  • 263
40
votes
2 answers

iPhone: Create a reusable component (control) that has some Interface Builder pieces and some code

I want to create a reusable component (a custom control) for the iPhone. It consists of several standard controls prearranged on a View, and then some associated code. My goals are: I want to be able to use Interface Builder to lay out the…
Mike Morearty
  • 9,953
  • 5
  • 31
  • 35
40
votes
7 answers

Nested UIStackViews Broken Constraints

I have a complex view hierarchy, built in Interface Builder, with nested UIStackViews. I get "unsatisfiable constraints" notices every time I hide some of my inner stackviews. I've tracked it down to this: ( "
Alex Popov
  • 2,509
  • 1
  • 19
  • 30
40
votes
2 answers

Difference between Frame Rectangle and Alignment Rectangle

Can anyone explain what is the difference between Frame Rectangle and Alignment Rectangle in the size inspector?
Yuchen
  • 30,852
  • 26
  • 164
  • 234
40
votes
4 answers

Using custom fonts with Xcode 6 / iOS 8 Interface Builder Launch Screen

I'm using Xcode 6’s new interface builder-based launch images, and am running into an issue. I created a new interface builder file by selecting New File, Launch Screen, which created a .xib file in my project. I then designed my launch screen, and…
Tim Arnold
  • 8,359
  • 8
  • 44
  • 67
39
votes
7 answers

How can I bring a view in front of another view, in Swift?

Below are how my views are organized in IB, top->bottom when the app is started. The user can do something to make "Category Table View Header" temporarily expand over "Name View" - however once doing so, the .TouchDown action assigned to "Category…
vk2015
  • 1,118
  • 1
  • 12
  • 16
38
votes
2 answers

How to disable Interface Builder document versioning from auto updating?

This question is still getting a lot of upvotes. So look at Update3. once you have upvoted, commented, answered, please please please file a radar Viewing a nib / xib, modifies the file, forcing me to either commit the change or undo the change.…
Nitin Alabur
  • 5,812
  • 1
  • 34
  • 52
37
votes
2 answers

applicationDidFinishLaunching not invoked

In my appdelegate.m, the applicationDidFinishLaunching is not invoked. I have read that this is due to the fact my "Application"'s delegate is not properly connected, but I don't know how to connect it. What I do is right-clicking on Application…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
37
votes
9 answers

Using 'attributed' label text in Interface Builder

I'm attempting to forego using NSAttributedString in my viewController, opting to use the 'Attributed' option (as apposed to 'Plain') in the 'text' field of the attributes inspector for a UILabel. I've selected the individual words I want to…
Kyle G
  • 4,347
  • 4
  • 26
  • 39
37
votes
6 answers

storyboard instantiateViewControllerWithIdentifier not setting IBOutlets

I am using storyboard instantiateViewControllerWithIdentifier: and I'm noticing that all the IBOutlets I have wired up are still nil. However, the IBActions I have wired up work. The view and controller are linked (i.e controller.view is not nil),…
BlueFish
  • 5,045
  • 3
  • 26
  • 35