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