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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -