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 10-29-2008, 01:10 PM   #8 (permalink)
javid.alimohideen
New Member
 
Join Date: Apr 2008
Posts: 298
Default

Ok. In that case, why don't you sublcass the Views or view controllers where you are changing the properties.
For example, say you have view AlarmRepeatViewController.xib and AlarmRepeatViewController.
You would doing something like initWithNibName:@"AlarmRepeatViewController"

In your AlarmRepeatViewController.h file, create a property of type Alarm

Code:
AlarmRepeatViewController.h
@interface
  Alarm *alarm;
@property (nonatomic, retain) Alarm *alarm;
 @end

// Before you push the AlarmRepeatViewController set the alarm object value

AlarmRepeatViewController *controller = [[AlarmRepeatViewController alloc] initWithNibName:@"AlarmRepeatViewController" bundle: nil];

controller.alarm = self.myAlarmObject
[self.navigationController pushViewController: controller animated:YES];
[controller release];
javid.alimohideen is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,726
Threads: 89,184
Posts: 380,513
Top Poster: BrianSlick (7,126)
Welcome to our newest member, donbran2
Powered by vBadvanced CMPS v3.1.0

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