---restore content starts---
UIApplication has a very powerful OpenURL method.
-(BOOL) OPENURL: (nsurl *) URL;
OpenURL: Some of the functions of the method are
Call UIApplication *app = [Uiapplicationsharedapplication]; [App openurl:[nsurlurlwithstring:@ "tel://10086"];
Send SMS [app openurl:[nsurlurlwithstring:@ "sms://10086"];
email [app openurl:[nsurlurlwithstring:@ "Mailto://[email protected]"];
Open a Web page resource [app openurl:[nsurlurlwithstring:@ "http://ios.itcast.cn"];
Open another app OpenURL method to open other apps.
URL supplement: URL: A Uniform Resource locator that is used to uniquely represent a resource. URL format: protocol header://Host address/resource Path network resources: Http/ftp and so on to represent the address of Baidu on a picture http://www.baidu.com/images/20140603/abc.png local resources: file:///users/ Apple/desktop/abc.png (host address omitted)
---restore content ends---
iOS Learning Note 3-openurl