• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iOS: Nibloading questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS: Nibloading questions


  • Subject: iOS: Nibloading questions
  • From: Development <email@hidden>
  • Date: Thu, 09 Jun 2011 15:52:15 -0700

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 (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: [ANN] SPSearchStore: Objective-C wrapper for SearchKit
  • Next by Date: Re: Manually setting orientation makes a mess out of my interface
  • Previous by thread: [ANN] SPSearchStore: Objective-C wrapper for SearchKit
  • Next by thread: Re: Manually setting orientation makes a mess out of my interface
  • Index(es):
    • Date
    • Thread