ios - UIActivityViewController is always sharing image before text -


in app, want share current song , artist followed album artwork. here code:

    var sharingitems = [anyobject]()      let currentsong = musicplayer.nowplayingitem?.title     let currentartist = musicplayer.nowplayingitem?.artist     let artwork = musicplayer.nowplayingitem?.artwork     let artworkimage = artwork?.imagewithsize(cgsizemake(100, 100))      let sharetext = "now playing \(currentsong!) \(currentartist!) via ryan's awesome app"      sharingitems.append(sharetext) //text first, image     sharingitems.append(artworkimage!)      let activityviewcontroller = uiactivityviewcontroller(activityitems: sharingitems, applicationactivities: nil)     activityviewcontroller.excludedactivitytypes = [uiactivitytypeaddtoreadinglist, uiactivitytypeassigntocontact, uiactivitytypeopeninibooks, uiactivitytypeprint, uiactivitytypesavetocameraroll]     self.presentviewcontroller(activityviewcontroller, animated: true, completion: nil) 

when choose share option, messges, image before text in textfield. why image first if it's last in array?


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -