Sharing crashes on iPad
Closed this issue · 8 comments
I'm creating an iPad app where I am trying to share an image. Here is my code:
if(objSocial.isActivityViewSupported()){
DebugPrint('Share Current Image (4.1) - Sharing supported - so far so good');
DebugPrint('Share Current Image (4.1) - sImage='+sImage);
objSocial.activityPopover({
text: "Share Image"
,subject: "Share Image"
,image:sImage
//removeIcons:"print,sms,copy,contact,camera,mail",
,view: btnShare //source button imgShare
});
} else {
//implement fallback sharing..
DebugPrint('Share Current Image (4.2) - sharing failed');
}
The error I get when I run this is the following:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TiUIButtonProxy _viewForPresenting]: unrecognized selector sent to instance 0x13e0ac000'
I have tried using a button as the "view" parameter as well as an ImageView. Both give me the same error.
I am using SDK 5.0.2 on an iPad only app. Thanks!
@christianrockbryan I am also getting this error on iPad 2 did you make any progress?
Unfortunately no. I haven't tried it again since posting here, but I also have not heard any response on it.
Ok thanks yes its definately crashing on a iPad Air 2 with the follow code.
var Social = require('dk.napp.social');
if (Social.isActivityViewSupported()) {
if (Ti.Platform.osname == "ipad") {
Social.activityPopover({
view: $.openIpad,
text: address,
url: "http://example.com"
});
}
} else {
}
Ive also posted here
Hope someone can suggest a fix.
@christianrockbryan what was your solution did you use something else?
Im not working on it. I believe Appc should step up and implement Social and Account Framework into the core.
Thanks
@christianrockbryan Please check the latest v1.8.4 update. @viezel, can you also update the releases section?
Yes, 1.8.4 fixed the problem. Thank you!