uiviewcontroller - iphone 2.x sdk - reference to a viewController inside another viewController showing up as null -
I am trying to give a new built example of the Custom Picker View Controller (ID) this {TimerPickerViewController * ViewController = [ [TimerPickerViewController alloc: (IBAction) rowTapped - a tableView line is used after it is called a selector from a ponceViewController instance) InitWithNibName:
inside] @ "Timer PictureView "Bundle: zero] self.timerPickerViewController = viewController; Timer pictureviewviewer monitoronlyviewviewer = AutoRightView controller; [See Controller Release]; } Then in my timerPickerViewController example I have:
- (id) initWithNibName: (NSString *) nibNameOrNil bundle: (NSBundle *) nibBundleOrNil {If (auto = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]) {... // ponceViewController is empty here ...}} timerPickerViewController displays okay, and I You can also use the ponceViewController after the stuff, after I tap "Gone" my button, but I am synthesizing ponceViewController and it is in my header and everything, and I use the timerPickerViewController's initWithNibName method Can not use it inside - it's always null. :( Anyone have any idea
Edit: I should also mention that the ponceViewController is empty inside the viewDidLoad method of timerPickerViewController ... should mention
- (zero) viewDidLoad {? ... there is nothing here! ...}
So I fixed it (NSString *) nibNameOrNil bundle: completely removed by initWithNibName. (NSBundle *) nibBundleOrNil timerPickerViewController and used in viewDidLoad Rather than everything seems to work well It seems that the issue is that the property was not available at the time while referencing it within initWithNibName . Hopefully someone else helps.
Comments
Post a Comment