ios - How to launch SMS Message app -


i want open sms message app copy text friends. not creating sms.

how launch iphone sms message app using swift code? come across code below launching mail app not working.

  [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:@"mailto:"]];  

i changed , same not working

 [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:@"sms:"]]; 

appreciate help. tia

// swift 3 uiapplication.sharedapplication().openurl(nsurl(string: "sms:")!)  // swift 4 uiapplication.shared.open(url(string: "sms:")!, options: [:], completionhandler: nil) 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -