2011-01-25 3 views
2

두 가지 버전의 앱이 있습니다. 라이트와 유료. 클릭하면 iPhone의 App Store 응용 프로그램이 열리 며 앱의 유료 버전 페이지가 표시되는 Lite 버전의 버튼이 필요합니다."Lite"앱의 버튼을 클릭하여 iPhone AppStore에서 "유료"앱 페이지를 여는 방법은 무엇입니까?

어떻게하면됩니까? I DONT는 Safari에서 유료 버전 iTunes 페이지를 열려고합니다. App Store 응용 프로그램에서만 열어야합니다.

감사합니다.

답변

4

이 항상 작동합니다 (모든 OS) :

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

코드 (그냥 복사 할 수 있습니다 &이 붙여 넣기) :

#define YOUR_PAID_APP_ID 553834731 // replace with your paid app ID 

static NSString *const iOSAppStoreURLFormat = @"http://itunes.apple.com/app/id%d"; // General link to the App Store 

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat: iOSAppStoreURLFormat,YOUR_PAID_APP_ID ]]]; // Would open the right link 
+0

나쁜 솔루션! iPhone은 먼저 Safari를 연 다음 AppStore를 엽니 다. – Dmitry

+0

"itms-app :"는 올바른 해결책입니다. – Dmitry

+0

그것은 당시 근무;) –

관련 문제