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
Post a Comment