Hi how can I fire functions and methods in a queue in Objective C ? I mean something like this :
method 1 then method 2 then method 3 , Should I use NSThread ?
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.
I have a different solution that involved in using GCD Serial Queues and
NSSelectorFromStringmethod.1st: Create an array with your methods names
2nd: Create a GCD Serial Queue
3rd: Using NSSelectorFromString to convert method name string to method and insert it into the serial Q using the a for loop, etc.
Here is the complete tested code: