I have an app with a number of custom views.

however this is not a problem I have faced in just this application.

About 3/4 of the objects I place in a nib work
for the other quarter no matter what I do the connection never happens.

For instance I have a view controller. 
The controller's view sometimes needs to display other views.
I attempt to put said views in the nib file
I connect them up
run the app
attempt to display the view with [self.view addSubview:aView];

nothing....
I NSLog() the view I'm attempting to add and find it's null.

I can back trace to the initWithCoder: method and find that at no point is the 
view ever connected. Thus I assume it was never even loaded.

What is it about IB or nib loading in iOS that I'm not understanding here?

on a side note, deleting the view and all it's subviews, renaming all the 
variables and reconnecting things sometimes fixes the issue completely.

I'm not using a beta of XCode or anything, It's the latest 4. release (However 
this problem was more common in 3.x)


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to