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
55
votes
13 answers

Xcode Interface Builder is showing "No selection" for all files

No matter what I've got selected in Interface Builder, the Inspector did apparently not register the selection and only showed "No selection". I tried opening and closing files, restarting Xcode and even rebooting my Mac. No change! What the heck…
Marius Waldal
  • 9,537
  • 4
  • 30
  • 44
55
votes
6 answers

Custom table view cell: IBOutlet label is nil

Consider the following simple view controller: class ViewController: UIViewController, UITableViewDataSource { @IBOutlet weak var tableView: UITableView! var items = ["One", "Two", "Three"] override func viewDidLoad() { …
David Chouinard
  • 6,466
  • 8
  • 43
  • 61
53
votes
4 answers

Does an IBOutlet needs to be a property & synthesized?

In most examples I see the following setup of IBOutlets: (Example A) FooController.h: @interface FooController : UIViewController { UILabel *fooLabel; } @property (nonatomic, retain) IBOutlet UILabel…
Ward Bekker
  • 6,316
  • 9
  • 38
  • 61
51
votes
5 answers

Custom fonts in Interface Builder

So we're in 2014, is there any way to set custom fonts within Interface Builder yet? Ie don't do it programmatically, except for "Fonts provided by application" in the app's plist.
Jonny
  • 15,955
  • 18
  • 111
  • 232
51
votes
6 answers

Creating a percentage based iOS layout

I'm trying to replicate a layout that I currently have in an Android application, but I don't know how to go about it in iOS especially because of the tallness of the iPhone 5. I know how to explain this in "Android" terms but I've been trying for…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
51
votes
3 answers

Apple Interface Builder warning: The content rectangle doesn't lie entirely on screen with the menu and may not be completely visible for all screens

A warning comes up in a MainMenu.XIB dialogue box. It says: Object: window(window) ID: 371 Type: Illegal Configuration Issue: This windows content rectangle does not lie entirely on the screen with the menu bar and may not be completely visible…
Carlos
  • 511
  • 4
  • 3
50
votes
3 answers

Add a custom color palette to Xcode Interface Builder

My current long term project utilizes a palette of custom colors. In code, we are using a category to access these colors by name. This works great but there are times, such as when building a nib, that these colors won't be set programmatically. I…
Pheepster
  • 6,045
  • 6
  • 41
  • 75
50
votes
11 answers

How to embed a custom view xib in a storyboard scene?

I'm relatively new in the XCode/iOS world; I've done some decent sized storyboard based apps, but I didn't ever cut me teeth on the whole nib/xib thing. I want to use the same tools for scenes to design/layout a reusable view/control. So I created…
Travis Griggs
  • 21,522
  • 19
  • 91
  • 167
50
votes
3 answers

Xcode Interface Builder - "correct" way to delete/rename miswired IBOutlets / IBActions?

I am new to Xcode, working through Swift, so I'm not sure if what I am decribing is actually a bug. When using interface builder and the assistant editor, I can create lables, buttons etc, and create Outlets and Action in the code with a…
dave_the_dev
  • 1,555
  • 3
  • 15
  • 27
49
votes
9 answers

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 pixels apart Their width needs to stay relative to…
Simon Germain
  • 6,834
  • 1
  • 27
  • 42
49
votes
4 answers

getting merge conflicts with inferredMetricsTieBreakers in Storyboard file

Whenever I get a conflict in a storyboard file, I can usually resolve it. However, I have an issue that has now come up twice in two weeks. At the very bottom of my Storyboard file, I see block named "inferredMetricsTieBreakers", with bunch of…
Dan Morrow
  • 4,433
  • 2
  • 31
  • 45
48
votes
9 answers

Is there a way to make gradient background color in the interface builder?

For my application I'm using a TableView and using customized UITableViewCells. I customized my cells via interface builder, not programmatically. Is there a way to also make the background color of my customized cell a gradient in the interface…
Serdar Dogruyol
  • 5,147
  • 3
  • 24
  • 32
48
votes
5 answers

Anyone find that UIDatePicker is broken under iOS 14?

Under iOS 14, the date/time pickers in my app are broken. Nothing changed in the project. They're defined in a storyboard and worked fine until I updated a few days ago. Now they're not spinners; they're large grey boxes with static text in…
Oscar
  • 2,039
  • 2
  • 29
  • 39
48
votes
8 answers

How do you set the tab order in iOS?

Is there a way (either in IB or code) to set the tab order between text fields in a view? Note that I'm not talking about the next form field after the return (or "Next") button is pressed -- many bluetooth keyboards have a tab key, which seems to…
lazycs
  • 1,586
  • 1
  • 13
  • 11
48
votes
4 answers

How to add an "entry point arrow" to a tab bar controller?

In Xcode 6.2 beta, I am able to make some view controllers such as "View Controller" or "Navigation view controller" the entry point of my interface by dragging and dropping the "entry point arrow" on it, it gives me something like this : But when…
Pop Flamingo
  • 3,023
  • 2
  • 26
  • 64