I need to find the NSTimer Invalidate Or not in if Condition….!
Because,NSTimer once Invalidate after another Invalidate is Crash the application…!
Any one help me with us….!
Thanks..!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you store a timer in a member variable you should retain it. Because probably you created it using
timerWithTimerInterval:Anyhow. If your reference is valid you can check it using [myTimer isValid];
If you don’t retain your timer, you should at least assign nil after invalidating it.