This is the error:
Error occurred on line: 668 (Main)
Your application has presented a UIActivityViewController (<UIActivityViewController: 0x7a908400>). In its current trait environment, the modalPresentationStyle of a UIActivityViewController with this style is UIModalPresentationPopover. You must provide location information for this popover through the view controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the view controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.
Stack Trace: (
CoreFoundation __exceptionPreprocess + 194
libobjc.A.dylib objc_exception_throw + 52
UIKit -[UIPopoverPresentationController presentationTransitionWillBegin] + 3922
UIKit __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2843
UIKit __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 513
UIKit __40+[UIViewController _scheduleTransition:]_block_invoke + 18
UIKit _runAfterCACommitDeferredBlocks + 348
UIKit _cleanUpAfterCAFlushAndRunDeferredBlocks + 624
UIKit _afterCACommitHandler + 190
CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
CoreFoundation __CFRunLoopDoObservers + 391
CoreFoundation __CFRunLoopRun + 1414
CoreFoundation CFRunLoopRunSpecific + 395
CoreFoundation CFRunLoopRunInMode + 123
GraphicsServices GSEventRunModal + 177
GraphicsServices GSEventRun + 80
UIKit UIApplicationMain + 148
Capers Dunedin main + 140
libdyld.dylib start + 1
)
You need to add this line to the share2socialmedia inline code:
Code:
controller.popoverPresentationController.sourceView = self._mypage.RootPanel.object;
http://stackoverflow.com/questions/25644054/uiactivityviewcontroller-crashing-on-ios8-ipads
Note that it requires iOS 8+.