I am using blocks in iPhone and inside that I am just showing an UIAlertView with a title and text.
The problem is that the alert view sometimes has very long to appear.
On other areas its working fine.
Can anyone suggest me what may be the reason?
I am using blocks in iPhone and inside that I am just showing an
Share
UI* elements must be handled from the main thread. If you use a block to run something in the background wrap all calls to
UI*in the dispatch_queue of the main thread.like this: