I want to check in viewDidLoad that a thread is running or not,
how can I achieve such concept?
I want to check in viewDidLoad that a thread is running or not, how
Share
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.
Yes, you can.
NSThreadhas methods for determining thread stateyou can use these methods.
for example in viewDidLoad you can write
UPDATION :
[NSThread currentThread]will return current running thread. its static method ofNSThreadclass.for your own thread