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
48
votes
4 answers

What is the File's Owner (in Interface builder)?

I am new to Cocoa and I don't understand the concept of File's Owner of a .nib file. Here is the way I would see things : Consider a file myNibFile.nib file that describes how a window looks. Now, I want to connect an actual window to this .nib…
Colas
  • 3,473
  • 4
  • 29
  • 68
47
votes
4 answers

How to get UITextView to respect newlines in Interface Builder?

I have a simple app with a UITextView embedded into a UIScrollView. Interface Builder won't let me add multiple newlines for spacing; when I hit return it sees that as "end of input" rather than appending the newline to the UITextView. How can I…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
47
votes
8 answers

How do I add a Navigation Bar to a UITableViewController in Interface Builder?

Interface builder does not let me click and drag a Navigation Bar onto a Table View Controller!!! It is super frustrating. All I want is a table view with an edit button (done in interface-builder). If this is not possible, then how do I add a…
rustybeanstalk
  • 2,722
  • 9
  • 37
  • 57
46
votes
4 answers

iOS - UIBarButtonItem Identifier - option to create "settings" cogwheel button

I want to create a UIBarButtonItem to represent the app's settings (cogwheel). Presently I can only find an option to create UIBarButtonItem (Interface Builder > Attributes Inspector > identifier) such as "Add" (+), "Edit", "Done", "Cancel" etc I…
user1046037
  • 16,755
  • 12
  • 92
  • 138
46
votes
10 answers

IBOutletCollection set ordering in Interface Builder

I am using IBOutletCollections to group several Instances of similar UI Elements. In particular I group a number of UIButtons (which are similar to buzzers in a quiz game) and a group of UILabels (which display the score). I want to make sure that…
gebirgsbärbel
  • 2,327
  • 1
  • 22
  • 38
45
votes
4 answers

Why is my XIB modified every time I open it in IB?

I click on the XIB via the project navigator. It opens up and immediately changes the icon to gray showing I have unsaved changes. If I save changes, click on a different file and click back to re-open it, more changes. Always modifies on open. It…
DBD
  • 23,075
  • 12
  • 60
  • 84
45
votes
8 answers

White space before separator line into my TableView

I have a question about UITableView... I have a UITableViewController and I created a custom cell. When I visualize the tableView I see a little white space before the separator line as you can see into this screenshot: Why? It is a default…
Safari
  • 11,437
  • 24
  • 91
  • 191
45
votes
14 answers

How to make xib compatible with both iphone 5 and iphone 4 devices

I am trying to layout my xib so that layout fits in both iphone 5 (4 inches retina) and 3.5 devices. Because I have to support IOS-5 I cannot use autolayout. I have to use springs and Struts. I tried everything in interface-builder. But either my…
user739711
  • 1,842
  • 1
  • 25
  • 30
44
votes
3 answers

How can I have the only column of my NSTableView take all the width of the TableView?

I am currently trying to learn a bit of Cocoa (using the book Cocoa Programming for Mac OS X). In one of the exercises, we set up a NSTableView with only one column, to act as a list of things. What annoys me is that in Interface Builder, I could…
tsimbalar
  • 5,790
  • 6
  • 37
  • 61
44
votes
1 answer

How to implement Visual Effect Views in Interface Builder?

How do you use Visual Effect Views with Blur and Vibrancy in Interface Builder? I've dragged this item out into the View, then dragged a UILabel onto the last view in the hierarchy - the vibrant effect's contentView I assume. This results in a…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
44
votes
2 answers

Can't make URL clickable in UITextView

I'm using Interface Builder to layout my app. I have a UITextView that contains some text, part of which is a URL that I'd like to make clickable (e.g. launches a browser). I've read up on how to do this and believe I'm doing it correctly, however…
Madbreaks
  • 19,094
  • 7
  • 58
  • 72
43
votes
2 answers

What's the difference between frame and layout in Interface builder's size inspector?

In IB, there is a dropdown in Size Inspector showing "Layout" and "Frame". I know what a frame is, but I don't know what the layout is in this case. What is the difference?
Boon
  • 40,656
  • 60
  • 209
  • 315
43
votes
11 answers

UITextView with hyperlink text

With a non-editable UITextView, I would like to embed text like this in iOS9+: Just click here to register I can create a function and manipulate the text but is there a simpler way? I see that I can use NSTextCheckingTypeLink so getting the…
Adam Nelson
  • 7,932
  • 11
  • 44
  • 64
43
votes
7 answers

UIButton with IB_DESIGNABLE throws runtime attribute warning and does not render in Interface Builder

I'm running Xcode 6.1 and I have been using IB_DESIGNABLE with IBInspectable for quite a few projects already but all of the sudden it just doesn't work anymore. I have created subclassed buttons that arrange the image and the title vertically…
Lucas van Dongen
  • 9,328
  • 7
  • 39
  • 60
42
votes
4 answers

Design UITableView's section header in Interface Builder

I have a xib file with a UITableView for which I want to add a custom section header view using the delegate method tableView:viewForHeaderInSection:. Is there any possibility to design it in Interface Builder and then change some of it's subview's…
Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113