Quote:
Originally Posted by lukeinjax
...not sure about this either.
Please feel free to correct the code.
|
This should read:
Code:
- (void)viewWillDisappearBOOL)animated {
[reloadTimer invalidate];
reloadTimer = nil;
}
----DONE
There might also be an issue with calling the refreshData method a second time - once in your if statement and again in the timer code. If that method is releasing something that's trying to be accessed the second time, that might be your issue.
Are there any messages in the console when your app crashes?[/quote]
---I commented the if statement so it calls only the NSTimer in the viewDidLoad but it still displays this message:
NSTimer may not respond to '+scheduleTimerWithTimeInterval:target:selector:us erinfo:repeats
I watched all of the tutorials in youtube and its pretty simple. I copied it exactly.