swift - How to share image and link? -
i have app in witch url @ run time , share link (witch works perfect ) want add image in same post doesn't show, why ? thanks, code have tried below, when use error "ambiguous reference member'uiimage.init'
thanks !
if let currenturl = webview.request?.url { let objectstoshare = [currenturl, uiimage(named: "via-facebook")] let activityvc = uiactivityviewcontroller(activityitems: objectstoshare, applicationactivities: nil) self.presentviewcontroller(activityvc, animated: true, completion: nil) } class datatoshow{ var image: uiimage? = uiimage(named: "via-facebook.png") }
}
facebook hide informations because user should not manipulated setted content. image , url removed send in share. check post on facebook , display image when iam not wrong. on code dont see put in image activityobjects.
Comments
Post a Comment