110
votes
23answers
45k 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 ...
98
votes
16answers
133k views

iPhone: How to load a View using a nib file created with Interface Builder

I'm trying to do something a bit elaborate but that should be possible, so here is a challenge for all you experts out there (this forum is pack of the lot of you :) ). Im creating a Questionnaire ...
88
votes
6answers
41k views

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? Thanks
71
votes
15answers
57k views

Loading a Reusable UITableViewCell from a Nib

I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that ...
48
votes
4answers
11k 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
2answers
20k views

Programmatically send to front/back elements created from interface builder

In interface builder, there are layouts options to send to back or send to front any elements such as UIButton, UIImage, UILabel etc... Now, I would like to do the same at runtime, programmatically. ...
19
votes
3answers
5k views

Can't set background color of UITableViewCell in IB

Have created a bunch of cells which i reuse in a tableview. all of those cells have just different UILabels inside and some UIImageViews (nothing covers the complete cell). setting the background ...
14
votes
5answers
13k views

Alignment UIImageView with Aspect Fit

for my UIImageView I choose Aspect Fit (InterfaceBuilder) but how can I change the vertical alignment?
13
votes
2answers
6k views

What is the “Mode” property in Interface Builder which offers “Scale to fill”, “Aspect fit” etc.?

I'm wondering what the dropdown "Mode" is about? It contains "Scale to fill", "Aspect fit" and so on. I never had to change it so far, still I'm curious what it can be used for. Can somebody explain? ...
13
votes
1answer
8k views

How to use a xib and a UIView subclass together?

I'd like to create a couple of custom views, sort of reusable UI components, and would prefer to not layout the UI in code in the UIView subclass. I'd like to use a xib for that. I've used a xib by ...
12
votes
3answers
5k views

Does Interface Builder use the -init method to initialize view controllers?

I have setup tab bar controller using interface builder, and each tab bar item is linked to a view controller (4 tabs, 4 view controllers). I want to know if Interface Builder uses an -init method to ...
12
votes
4answers
7k views

Is there an easy to understand guide (new to Cocoa, Xcode, etc) for Interface Builder that talks about proxy objects?

Back in the day of C/C++, the part of the language that really hung me up was pointers. I understand them now, of course. Now, Interface Builder Proxy Objects or more importantly, how to use ...
11
votes
3answers
953 views

If you have an IBOutlet, but not a property, is it retained or not?

I find the documentation on this issue to be unclear: Say you are working with iOS (NOT the Mac case, no need to mention the differences). Say it is strictly 4.0+ (no need to mention differences in ...
11
votes
3answers
8k views

How to disable AM/PM in UIDatePicker

How to disable or hide AM/PM in UIDatePicker from code / interface builder? I want to have 24 hours time picker mode in UIDatePicker. Please help
10
votes
4answers
7k views

How can I make text in a UILabel shrink font size

If a UILabel contains too much text, how can I setup my label so that it shrinks font-sizes? Here is how I am setting up my UILabel: descriptionLabel = [[UILabel alloc] ...

1 2 3 4 5 23
15 30 50 per page