Getting an Apple WatchKit App to pre-compose an SMS message with a line break (with Swift)? -


i'm having little trouble getting watchkit app pre-compose sms message line break (via apple watch message app).

my current code:

let mymessage = "hi!\nit's%20me!"  let extent = wkextension.sharedextension() extent.opensystemurl(nsurl(string: "sms:&body=\(mymessage)")!) 

this code crashes watch app if take out "\n" , replace "%20" keeping on same, function works fine.

does know how pre-compose sms message line break?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -