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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -