objective c - How to open "Paid" app page in iPhone's AppStore by clicking button in "Lite" app? -


i have 2 versions of app. lite , paid. want have button in lite version when clicked opens app store application on iphone , shows page paid version of app.

how do this? dont want open paid version itunes page in safari. should open in app store application only.

thanks!

this should work (all os):

http://itunes.apple.com/app/idyour_paid_app_id 

code snippet (you can copy & paste it):

#define your_paid_app_id 553834731 // replace paid app id  static nsstring *const iosappstoreurlformat = @"http://itunes.apple.com/app/id%d"; // general link app store  [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:[nsstring stringwithformat: iosappstoreurlformat,your_paid_app_id ]]]; // open right link 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -