Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 70

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
06/07/15 07:12 AM (9 years ago)

Mosaic Plugin Sharing Image issue

Hi, when using Mosaic as a Image Gallery, after selecting the image it opens in full screen but when selecting the share button, the app crashes. 5] BT_fileManager: File does exist in Xcode bundle: "mo01.jpg" 2015-06-07 15:06:04.989 regret[19644:899225] Presenting view controllers on detached view controllers is discouraged <AK_mosaicMenu: 0x7fd298cd2360>. 2015-06-07 15:06:05.033 regret[19644:899225] regret_appDelegate: supportedInterfaceOrientationsForWindow 2015-06-07 15:06:05.050 regret[19644:899225] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<_UIAlertControllerActionSheetRegularPresentationController: 0x7fd298f18ba0>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.' *** First throw call stack: ( 0 CoreFoundation 0x000000010845dc65 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x00000001080f6bb7 objc_exception_throw + 45 2 UIKit 0x0000000106f8719a -[UIPopoverPresentationController presentationTransitionWillBegin] + 2650 3 UIKit 0x0000000106982d79 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 1305 4 UIKit 0x00000001069813c0 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 189 5 UIKit 0x000000010689762c _applyBlockToCFArrayCopiedToStack + 314 6 UIKit 0x00000001068974a6 _afterCACommitHandler + 533 7 CoreFoundation 0x0000000108390ca7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 8 CoreFoundation 0x0000000108390c00 __CFRunLoopDoObservers + 368 9 CoreFoundation 0x0000000108386a33 __CFRunLoopRun + 1123 10 CoreFoundation 0x0000000108386366 CFRunLoopRunSpecific + 470 11 GraphicsServices 0x00000001088caa3e GSEventRunModal + 161 12 UIKit 0x0000000106873900 UIApplicationMain + 1282 13 regret 0x0000000103c289f4 main + 68 14 libdyld.dylib 0x000000010bc5b145 start + 1 15 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException Any ideas? Thanks
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
06/07/15 07:55 AM (9 years ago)
>5] BT_fileManager: File does exist in Xcode bundle: "mo01.jpg" Seems like the image mo01.jpg is not present? Is it really there?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/07/15 10:03 AM (9 years ago)
It says it does exist. And yes th image opens up in full screen, and then crashes when the share button is pressed. Thanks
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
06/07/15 10:07 AM (9 years ago)
The issue is here: UIPopoverPresentationController ... "should have a non-nil sourceView or barButtonItem set before the presentation occurs."
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
06/07/15 10:15 AM (9 years ago)
So, the view is not initialized after the share button is activated. Insert an if statement to check it out.
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
06/09/15 01:20 AM (9 years ago)
Thanks guys. I don't think I know how to do that. I'm trying. Thanks for the support. Cheers
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.