iphone - UIActivity Duplicate Calls to 'activityViewController' -


i have uiactivity implements activityviewcontroller method. works fine, except when user double taps on icon activity. causes duplicate calls method , crashes with:

terminating app due uncaught exception 'nsinvalidargumentexception', reason: 'application tried present modally active controller .'

i using custom uiactivityitemprovider data makes server call (and can slow) , seems cause of issue.

how can make sure 2 view controllers aren't being presented? note: being done through uiactivityviewcontroller don't think have access buttons disable them.

disable button after first click, , enable after dismiss activityviewcontroller


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -