I have an array and every object of the array is with 2 objects:
double = time in miliseconds
nsstring = string to print
and i want that my app will scan the array and when it will come to the time of the miliseconds it will print the nsstring.
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.
Alright, I assume the objects are called
MyObject, and the array is calledobjectArray, so try this:In your .h file, add the line:
Then, in your
viewDidLoad:method, add the lines:(Note:, you may need to use a
NSDateFormatterto get anNSDatewith0milliseconds.) Finally, in yourdeallocmethod, add:Hope that Helps!