Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

Graves Robber
($1.99)

African Adventure
($0.99)

iTazer
($0.99)

ArtStudio
($3.99)

Pigs Vs Wolves
($1.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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 23,591
Threads: 38,348
Posts: 168,506
Top Poster: smasher (2,539)
Welcome to our newest member, gotaway
Powered by vBadvanced CMPS v3.1.0

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