When I am moving from one tab to another in the timer continues to run.
But I want to stop that timer.
So if anyone knows then please tell me which method i need to call while moving from one tab to another.
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.
You can stop timer process like this,
Edit
You can put this method when you pushing another method For Example: if you using Timer for Reload Data of TableView every 6 second then you can push particular row by selecting then you can put this two line of code in
AND
if your app Tab based you put timer stop code in
viewWillDisappear