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
3
votes
1 answer

Constraints keep going haywire every time I reopen an XCode project

Every time I close and reopen XCode 6 beta 6, my previously-happy constraints are messed up and I have to click on the yellow dot to get to the "Misplaced Views" thingy, then click on each yellow triangle, choose Update Frame, and click Fix…
Marc Fearby
  • 1,305
  • 1
  • 13
  • 28
3
votes
2 answers

How to convert a UITableViewCell's content view to a normal UIView in Interface Builder?

I designed a sophisticated UITableViewCell in Interface Builder, which has many subviews and constraints. The problem is that they many of them are direct children of the content view. I now want to insert a UIView between the content view and all…
Senseful
  • 86,719
  • 67
  • 308
  • 465
3
votes
1 answer

How can I use didSet to change the text of a UITextField (IBOutlet)?

I'd like to set text value of UITextField (IBOutlet) in the DidSet of my model object that I pass. Here the code: let manageSettingViewController: ManageSettingViewController =…
user3914418
3
votes
1 answer

Why are Views loaded from nibs being placed 20 pixels down from the status bar?

I am trying to set up a layout as such in an iPad application. It will have three major views, which make up the whole screen. The views will be stacked one on top of the other, each taking up the full width. I have one major nib file which…
rickharrison
  • 4,867
  • 4
  • 35
  • 40
3
votes
2 answers

One IBOutlet for two UILabels

I have two views within one .xib (one view for landscape, another for portrait). How can I use the same IBOutlet I've defined in @interface section for both labels if they have the same functionality. (ctrl+dragging to both of them does'n help-each…
Knodel
  • 4,359
  • 8
  • 42
  • 66
3
votes
2 answers

iOS 8 - Swift - Xcode 6 Beta - working without interface builder (no nibs and no storyboard)

I have been searching a lot in the inter webs and Stackoverflow. Unfortunately there doesn't seem to be much info around the new Xcode version, iOS 8 specifically with Swift and working without the Interface Builder. The Templates to choose from as…
Benzy
  • 855
  • 7
  • 16
3
votes
1 answer

'Receiver has no segue with identifier' when identifier exists

For an iOS app, I have a story board and multiple controllers, and a segue going from controller GameClass to controller SettingsClass. The segue, in view Controller GameClass has an identifier called GameToSettings: However, when I want to call…
3
votes
1 answer

XCode 6 - Auto Layout

I am just starting a new app and the request came to use Interface Builder this time (I normally do all my stuff programmatically) but anyway. I am trying to have 2 Image Views sit next to each other on both Portrait and Landscape. I was toying with…
Shuyinsama
  • 326
  • 6
  • 19
3
votes
2 answers

Static Table Cells in NIB File

Is it possible to create a nib file that has a table view with custom static cells? I want to create a form-like table view with all static content, but I'm not currently using storyboards. I was able to find the content type menu in the default…
BHendricks
  • 4,423
  • 6
  • 32
  • 59
3
votes
1 answer

Making Swift Class available to Interface Builder

I have an XCode Project which I was developing in objective C but now with Swift I have a few classes saved as .swift files. When I am referencing these as custom classes in the Interface Builder, they don't work and I get an error that the class…
Prateek
  • 1,724
  • 3
  • 15
  • 27
3
votes
2 answers

How to get a compiler warning when an IBOutlet is disconnected

How can I have Xcode warn me if an IBOutlet of one of my objects is not hooked up to anything in a NIB? I can check that outlets are connected at runtime by adding assert(ofEveryOutlet); in awakeFromNib or viewDidLoad. But it's not as useful, or…
Vincent Gable
  • 3,455
  • 23
  • 26
3
votes
0 answers

Copy views between View Controllers without "connections" in Interface Builder

Is there a way to copy View Controller's element (views, labels, buttons and whatnots) to another ViewController but without copying the bindings set on this item (IBAction,IBOutlets)? This is most obvious when you try to copy some views between…
Lukasz 'Severiaan' Grela
  • 6,078
  • 7
  • 43
  • 79
3
votes
2 answers

Interface Builder issue with Tab Bar

I have duplicated this on both Xcode 6 - beta 2 AND Xcode 5 on a different machine. Surely this can't be a bug as it is such a common task it would have been caught by now. I drag a tab bar to a view controller. All good. I drag an additional tab…
Justin Moore
  • 884
  • 2
  • 9
  • 22
3
votes
1 answer

Interface builder UIButton custom background image not working on simulator/device

I'm trying to do something really simple. I have an image for a button and I'm trying to set it on a custom button in interface builder. I set the background image accordingly (no case sensitivity problem here). In interface builder it shows up, but…
xenonii
  • 158
  • 1
  • 8
3
votes
0 answers

How to add a constraint to an NSTextField's baseline in Interface Builder?

I have 2 labels that are stacked and have a bottom space constraint to their common container. I want to hide the lower label if there's no value for it and move the upper label down to the lower label's position. I can do that easily with an outlet…
Mike Lischke
  • 48,925
  • 16
  • 119
  • 181
1 2 3
99
100