The following describes how to develop an app from one app:
First, customize the URL types in info. plist of the app to be opened.
Then write the code in the response event of another appCode:
Nsurl * url = [nsurl urlwithstring: @ "MyApp: // com. rumtel. MyApp"];
[[Uiapplication sharedapplication] Openurl: url];
Jump to the appstore directly:
[[Uiapplication sharedapplication] Openurl: url];
My requirement is to click an app icon and determine whether the app has been downloaded. Otherwise, I will go to the appstore to purchase the app.
If ([_ app canopenurl: [nsurl urlwithstring: @ "MyApp: // com. rumtel. MyApp"]) {
[[Uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "MyApp: // com. rumtel. MyApp"];
} Else {
[[Uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "http://itunes.apple.com/(* your app address)"];
}