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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -