If you are still dealing with this problem (or if others hit it later):
wait_fences
usually means that you control an external screen (or during a competing animation) - perhaps either inside MFMailComposeViewer
, or most likely behind it. (There are several other wait_fences
questions in wait_fences
.)
In other words, the problem is most likely not with the code you posted, but with other user interface events that occur around it.
If this (and the search) does not lead to a correction, you can manually fix the problem by commenting on the surrounding code associated with the user interface until it works, or (otherwise) reduce the error code to its simplest possible a sample version and post it here so that we can fix it.
(Also, presentModalViewController:animated:
deprecated in iOS6, but this question has been asked in the last days of iOS5, so I'm sure no problem.)
toblerpwn
source share