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
66
votes
5 answers

Designing in landscape with Storyboards

Is it possible to design interfaces in landscape with Interface Builder? Others with the same question apparently were able to do so with an arrow at the top right of any selected view, but I see no such arrow. A picture would be helpful. (Note: I…
Dany Joumaa
  • 2,030
  • 6
  • 30
  • 45
65
votes
15 answers

Failed to render instance of IB Designables

I have an Objective-C and Swift mixed dynamic framework. And the mixed framework was linked with two pure Objective-C dynamic frameworks. When I tried to mark any class in the mixed framework with IB Designable and using that class in either…
WeZZard
  • 3,536
  • 1
  • 23
  • 26
65
votes
3 answers

macOS window with integrated title bar and toolbar?

In macOS how can I create a window with an "integrated title bar and toolbar" in Xcode and/or Interface Builder? This is the "fat title bar" type of window that was added to apps such as Safari and Calendar in OS X 10.10 Yosemite. Unified title bar…
Kornel
  • 97,764
  • 37
  • 219
  • 309
64
votes
16 answers

How to change navigation bar color in iOS 7 or 6?

I want to change the color of the navigation bar color, but I'm not sure whether or not I should change the tint or the background. I know iOS 7 is going for a more flat design (even recommending removing gradients), but I am having trouble…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
63
votes
7 answers

Xcode Interface Builder: Z-Index, Z-order of a button, image, UI element, etc?

I'm dragging things around in an Xcode Interface Builder Storyboard... I'd like to specify whether an image is in front (like an indicator) or behind a button (like a background). I don't see any z-index property as I'm used to seeing on other…
Shai UI
  • 50,568
  • 73
  • 204
  • 309
63
votes
5 answers

How to enter unicode characters in a UILabel in Interface Builder?

I would like to display a unicode character (the speaker symbol U+1F50A) in label. Is it possible to enter this symbol in Interface Builder?
ragnarius
  • 5,642
  • 10
  • 47
  • 68
62
votes
11 answers

Misplaced views each time Xcode restarts

I'm using storyboards for the first time in my app When I close Xcode, I have 0 warnings about misplaced views or anything pertaining to my storyboard. When I restart Xcode and open the storyboard, 3 out of my 15 scenes have misplaced view…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
62
votes
10 answers

How do I adjust the left margin for prototype cells in a UITableView?

If I create a UITableViewController, for example via File → New Project... → iOS → Master-Detail Application in Xcode, a UITableView is created with a prototype cell. The generated view hierarchy is: A left "margin" is automagically created between…
j b
  • 5,147
  • 5
  • 41
  • 60
61
votes
10 answers

Is there a way to change the height of a UIToolbar?

I've got an UIToolbar in Interface Builder and I've noticed that it's locked to being 44px tall. Of course I'd like to make this larger. Does Apple allow resizing of this control? If so, how do I go about it?
mac_55
  • 4,130
  • 7
  • 31
  • 40
61
votes
4 answers

how to make UILabel autosize text in storyboard (or interface builder), NOT programmatically

Every time I click-and-drag a UILabel to storyboard, and then add text to Text field, the text is cut off, so I then have to click-and-drag the UILabel to stretch it big enough so that the text appears. I can't figure out how to make the UILabel…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
58
votes
2 answers

What's the difference between custom class and file's owner setting in xib file?

In a custom xib file, what's the difference between the two following setting methods shown in the images below?
Alfy
  • 889
  • 1
  • 7
  • 17
58
votes
11 answers

Why does a custom UIButton image does not resize in Interface Builder?

Why does a custom UIButton image not resize with the button? I set its view mode to Scale to Fill in Interface Builder, but unlike a UIImageView image, it doesn't respect that setting. Am I looking in the wrong place or is it not possible?
willc2
  • 38,991
  • 25
  • 88
  • 99
58
votes
4 answers

Do I have to call addSubview after calling addChildViewController?

I'm trying to create a container view controller using iOS5 and new methods like addChildViewController. Do I have to call addSubview after calling addChildViewController? Do I have to call removeFromSuperview before calling…
Ricardo
  • 2,831
  • 4
  • 29
  • 42
57
votes
4 answers

Apple Interface Builder: adding subview to UIImageView

I created UIImageView with the help of Interface Bulder. Now I want to place label inside it (as its subview). In code I can type something like: [myUIImageView addSubview:myUILabel]; But can I do it with the help of IB? I found the solution for…
kpower
  • 3,871
  • 4
  • 42
  • 62
57
votes
7 answers

Swift - IBOutletCollection equivalent

I'm trying to replicate the Stanford Matchismo game from "Developing ios7 apps for iphone and ipad" in iTunesU in Swift. On page 77 of the 3rd lecture slides, it shows using an IBOutletCollection which isn't an option on Swift. The Swift doc…
Alcanzar
  • 16,985
  • 6
  • 42
  • 59