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, 10:02 PM   #1 (permalink)
skinrock
Registered Member
 
Join Date: Aug 2008
Posts: 177
Default Question about initWithNibName

Let's say you have your basic View xib file, the file owner is a ViewController which you have class files for, and there is a View which has class files as well. You set a view outlet on the File Owner to the UIView using Interface Builder.

This is all loaded via another ViewController whose xib name is set to that View xib file.

Everything just loads automatically, there's no question about that. When you create a UIViewController class file, it gives you a built-in function called initWithNibName. I would assume this gets called in place of things like loadView or viewDidLoad.

I set a break point, but this is never getting called.

My problem is I'm trying to mimic the Accelerometer Graph example, but it's not working right when I load it on my phone. So I'm trying to bypass the accelerometer calls (since the simulator doesn't fire the events), and just draw my graph. I tried putting the draw method in initWithNibName, but like I said, it's not getting called.
skinrock is offline   Reply With Quote
 

» Advertisements
» Online Users: 688
24 members and 664 guests
306Designs, ags9, apatsufas, BrianSlick, ckgni, coder, dacapo, Dani77, Domele, Gambit, JamesCahall, jameswilliards, k2c, mohe01pro, nitingohel, Objective Zero, Oral B, Prajakta, rky, robin4kneb, skrew88, StormFactory, Vad
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,783
Threads: 89,204
Posts: 380,594
Top Poster: BrianSlick (7,129)
Welcome to our newest member, robin4kneb
Powered by vBadvanced CMPS v3.1.0

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