Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-10-2008, 11:19 PM   #2 (permalink)
jeff_lamarche
New Member
 
Join Date: Apr 2008
Posts: 420
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default

Any object instance that is loaded from a nib will get created using initWithCoder: because the nib contains serialized object, and when the nib is loaded, the instances is reconstituted from the object archive, meaning that instead of init:, initWithFrame:, initWithNibName:, or initWithLarryMoeAndCurley:, it will always use initWithCoder: to initialize the object.

Try putting your code in initWithCoder:, make sure to call super first, and return self.
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
 

» Advertisements
» Online Users: 621
19 members and 602 guests
apatsufas, armmzz, brianmethod, chits12345, ckgni, claudia99, Dani77, devangvyas, Domele, drewrico, ghost, JamesCahall, my02820, oceanlablight, Oral B, rky, skrew88, SoulRed12, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,785
Threads: 89,204
Posts: 380,594
Top Poster: BrianSlick (7,129)
Welcome to our newest member, drewrico
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.