hello
Here is my code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:
(NSIndexPath *)indexPath {
WhatsFreshAppDelegate *appDelegate = (WhatsFreshAppDelegate *)
[[UIApplication sharedApplication] delegate];
if(indexPath.row == 0){
[appDelegate setCurrentMiles:@"200"];
}else if(indexPath.row==1){
[appDelegate setCurrentMiles:@"500"];
}else if(indexPath.row==2){
[appDelegate setCurrentMiles:@"1000"];
}else if(indexPath.row==3){
[appDelegate setCurrentMiles:@"1500"];
}else if(indexPath.row==4){
[appDelegate setCurrentMiles:@"2000"];
}else if(indexPath.row==5){
[appDelegate setCurrentMiles:@"2500"];
}else if(indexPath.row==6){
[appDelegate setCurrentMiles:@"5000"];
}else if(indexPath.row==7){
[appDelegate setCurrentMiles:@"10000"];
}
[appDelegate setupStateDisplay:[appDelegate currentLatitude]
longString:[appDelegate currentLongitude] milesString:[appDelegate
currentMiles]];
[appDelegate refreshLocation:TRUE];
[(MyLocationViewController *)myParentController resetMiles];
}
DO I HAVE TO WORRY ABOUT RELEASING currentMiles somewhere?
Thanks
James Cicenia
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com