158
votes
15answers
61k views

Loaded nib but the view outlet was not set - new to InterfaceBuilder

I added a new nib file to my project, and all I want to do is have it display on the screen for now. However, when I click on the toolbar icon that is supposed to take me to the view that I created, ...
118
votes
25answers
52k views

“Unknown class <MyClass> 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 ...
28
votes
5answers
23k views

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 ...
84
votes
1answer
25k views

Remove autolayout (constraints) in Interface Builder

I'm trying to make my project compatible with Snow Leopard and I am not able to remove the autolayout in the nibs using Interface builder (XCode 4.3 on Lion). Is it possible to remove the constraints ...
56
votes
4answers
49k views

How to add a button to UINavigationBar?

How to add a button to UINavigationBar programmatically?
58
votes
4answers
12k views

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?
30
votes
6answers
6k views

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 ...
14
votes
9answers
11k views

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 ...
12
votes
2answers
8k views

iPhone Storyboard: different scene for portrait and landscape

If you scroll down a bit at this Apple Developer Page you'll find the section "Creating an Alternate Landscape Interface". The basic approach described there is to present a different NIB file as a ...
17
votes
1answer
7k views

How do you display custom UIViews in InterfaceBuilder?

I seem to enjoy designing new UIViews and UIControls that implement their own -drawRect: method. This work well for me, especially when composed using UIViews in Interface Builder. But composing them ...
8
votes
3answers
2k views

Xcode Interface Builder crashes when I edit storyboard

I'm new to Xcode and am having problems with the IDE crashing when I use the Interface Builder. This is Xcode 4.5. It worked properly for long enough for me to add a dozen or so buttons to the ...
45
votes
6answers
19k views

Can't resize UIView in IB

Probably something simple, but I can't figure why I cannot resize a UIView in a xib in Interface Builder. I created a new view XIB in xcode and in the size inspector, the width and height are ...
21
votes
6answers
10k views

Interface Builder and Xcode integration not working

After having installed the iPhone SDK 3.1.2, Interface Builder is not in sync with Xcode anymore. The light indicator at the bottom of the XIB window is grey. IB doesn't see any files from the Xcode ...
7
votes
3answers
3k views

Is a MainWindow.xib truly needed in iOS application?

Before doing any type of iOS 5.0 development using Xcode 4.2, Xcode has provided a "MainWindow.xib" in templates. After downloading and playing with Xcode 4.2 with iOS 5.0, I noticed that none of the ...
6
votes
2answers
4k views

UISegmentedControl text with multiple lines?

How can I make the text in one of the buttons in my UISegmentedControl span multiple lines?

1 2 3 4 5 9
15 30 50 per page