ios - Duplicate WhatsApp icon in UIDocumentInteractionController -
i'm using following code share image via whatsapp
-(void)shareimageusingdocumentcontroller:(uiimage *)image filename:(nsstring *)filename uti:(nsstring *)uti completion:(void (^)(sharingresult sharingresult))completion { if (completion) { self.sharecompleted = completion; } self.documentinteractioncontroller = nil; self.documentinteractioncontroller = [[uidocumentinteractioncontroller alloc] init]; nsurl *localurl = [self writelocalfilefromuiimage:image filename:filename]; if (localurl != nil) { self.documentinteractioncontroller.url = localurl; self.documentinteractioncontroller.uti = uti; self.documentinteractioncontroller.delegate = self; [self presentdocumentineractioncontroller]; } } -(uiviewcontroller *)documentinteractioncontrollerviewcontrollerforpreview:(uidocumentinteractioncontroller *)controller { return self.presentingviewcontroller; }
this bdsshare library , i'm using swift app. i'm calling function code.
img: uiimage = self.loadimage() bdgshare.shared().shareimage(usingdocumentcontroller: img, filename: "whatsapptmp.wai", uti: "net.whatsapp.image") {(sharingresult) -> void in // handle share result... self.handleshareresult(sharetarget.type, shareresult: sharingresult) }
the problem i'm having see 2 icons whatsapp in controller.
can see why there 2 whatsapp icons here? i've been searching on , can't find posts differently am. can't find 1 mentioning issue of having multiple whatsapp icons either. if use first icon (labeled 'whatsapp') doesn't work. select contact , hit send , screen filename in it. using second button (labeled 'copy whatsapp') select contact , see image on black screen text entry caption.
i'd rather skip selector , go straight whatsapp i'd settle 1 button (naturally 1 works ;))
tia mike
turns out forgot whatsapp being 1 of services supported default. seeing default item , 1 added calling uidocumentinteractioncontroller
uti whatsapp. switched shareimageusingactivitycontroller
same bdgshare lib , it's good.
mike
Comments
Post a Comment