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
Post a Comment