Am very new to iPhone application development. Am adding the events to iCal from my iphone app. The user can add multiple events at a time to iCal from the app. If the user add above 50 events to iCal, the event does not adding in iCal and the app getting crash. So, i want to avoid the app crash. So, i planned to delay the adding event to iCal inside the for loop(While the loop is in running state). How can i pause the For loop running and continue the for loop after 10 sec’s delay. Meanwhile the for loop should continue after 10 sec’s from where it was paused. How can i do this? Any ideas? Please help to solve my problem? Thanks in advance.
Share
The best way to do what you’re after is an
NSOperationQueuebut it’s a bit technical. Something like this might be easier to understand:Header:
When you specify your list of events:
The
nextOpmethod: