My app crashes when the control comes over here [self loadNextList]. I am not sure why this happeninging. Please let me know if you see the problem.
For the first time , it works i dont see any problem. and when the loadNextList method is called again it gets crashed.when crashing no error message found in the console.
NSString *myTierTwoID;
@property(nonatomic,retain)NSString *myTierTwoID;
-(void)getData{
myTierTwoID = [myTierTwoDict objectForKey:myTierTwoTitle];
[self loadNextList];
}
-(void)loadNextList{
//==========================
NSLog(@"%@ lloo",myTierTwoID);
NSString *aTierTwoId = [NSString stringWithFormat:@"%d", [myTierTwoID intValue] + 1];
NSLog(@"%@ aTierTwoId",aTierTwoId);
myTierTwoID = aTierTwoId; // here it crashes the app
NSLog(@"%@ lloo",myTierTwoID);
}
The property signature expects a retained value, so you should do this instead:
and