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
1312
votes
81 answers

Xcode - How to fix 'NSUnknownKeyException', Reason: "… this class is not key value coding-compliant for the key X" error?

I'm trying to link a UILabel with an IBOutlet created in my class. My application is crashing with the following error" *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x6e36ae0>…
Guillaume Dubois
  • 2,003
  • 3
  • 13
  • 4
816
votes
32 answers

Loaded nib but the 'view' outlet was not set

I added a new nib file to my project, and tried to load it. However, when I click on the toolbar icon that is supposed to take me to the view that I created, I get an NSInternalInconsistencyException with the message: Terminating app due to…
John
  • 10,839
  • 8
  • 26
  • 31
639
votes
52 answers

Xcode 6 Bug: Unknown class in Interface Builder file

I upgraded to Xcode 6 beta 4 and now my App continuously crashes with the message Unknown class X in Interface Builder file. It crashes because supposedly Xcode can't find my custom classes that I have linked in my Storyboard but it shows that…
Epic Byte
  • 33,840
  • 12
  • 45
  • 93
619
votes
34 answers

UIScrollView Scrollable Content Size Ambiguity

Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic and important so I think everyone should know how this properly works. If this is a bug in Xcode, it is a critical one! So, whenever I have a…
Wirsing
  • 6,713
  • 3
  • 15
  • 13
574
votes
11 answers

Should IBOutlets be strong or weak under ARC?

I am developing exclusively for iOS 5 using ARC. Should IBOutlets to UIViews (and subclasses) be strong or weak? The following: @property (nonatomic, weak) IBOutlet UIButton *button; Would get rid of all of this: - (void)viewDidUnload { // ... …
365
votes
24 answers

How to use Auto Layout to move other views when a view is hidden?

I have designed my custom Cell in IB, subclassed it and connected my outlets to my custom class. I have three subviews in cell content which are: UIView (cdView) and two labels (titleLabel and emailLabel). Depending on data available for each row,…
Guferos
  • 4,337
  • 5
  • 18
  • 25
281
votes
14 answers

Cocoa Touch: How To Change UIView's Border Color And Thickness?

I saw in the inspector that I can change the background color, but I'd like to also change the border color and thickness, is this possible?
Shai UI
  • 50,568
  • 73
  • 204
  • 309
281
votes
19 answers

Could not insert new outlet connection: Could not find any information for the class named

I got an error on Xcode saying that there was no information about the view controller. Could not insert new outlet connection: Could not find any information for the class named Why is this happening?
Ege Kaan Gürkan
  • 2,923
  • 2
  • 13
  • 24
261
votes
46 answers

"Unknown class in Interface Builder file" error at runtime

Even though Interface Builder is aware of a MyClass, I get an error when starting the application. This happens when MyClass is part of a library, and does not happen if I compile the class directly in the application target.
jhoule
  • 2,466
  • 3
  • 17
  • 12
244
votes
23 answers

How to load a UIView using a nib file created with Interface Builder

I'm trying to do something a bit elaborate, but something that should be possible. So here is a challenge for all you experts out there (this forum is a pack of a lot of you guys :) ). I'm creating a Questionnaire "component", which I want to load…
Gonso
233
votes
23 answers

How to deselect a selected UITableView cell?

I am working on a project on which I have to preselect a particular cell. I can preselect a cell using -willDisplayCell, but I can't deselect it when the user clicks on any other cell. - (void)tableView:(UITableView*)tableView …
Ram
  • 2,503
  • 2
  • 16
  • 14
218
votes
5 answers

How do I enter RGB values into Interface Builder?

How can I enter RGB or Hex color values for backgrounds in Interface Builder? I can select predefined colors but I would like to manually enter in RGB values. Where can I do this?
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
211
votes
5 answers

Xcode 10, where are the UI elements?

Have been out of Swift coding for almost a year, I'm back. Download Xcode 10 beta. Have I lost my mind? I've tried every trick I know, none of the UI elements show up in storyboard. Zero. The sidebar is empty. Xcode 10: Xcode 9, no problem there…
Edward Potter
  • 3,760
  • 4
  • 28
  • 39
201
votes
9 answers

Is it possible to set UIView border properties from interface builder?

Is it possible to control UIView border properties (color, thickness, etc...) directly from interface builder or I can only do it programmatically?
matteo.cajani
  • 2,495
  • 4
  • 21
  • 19
187
votes
14 answers

UISplitViewController in portrait on iPhone shows detail VC instead of master

I am using a Universal Storyboard in Xcode 6, targeting iOS 7 and above. I've implemented a UISplitViewController which is now natively supported on iPhone running iOS 8, and Xcode will automatically backport it for iOS 7. It's working really well,…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
1
2 3
99 100