【发布时间】:2012-01-14 11:52:29
【问题描述】:
我有这个代码在一个按钮点击来评价这个应用程序
-(IBAction)_clickbtnratethisApp:(id)sender
{
NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa";
str = [NSString stringWithFormat:@"%@/wa/viewContentsUserReviews?", str];
str = [NSString stringWithFormat:@"%@type=Purple+Software&id=", str];
// Here is the app id from itunesconnect
str = [NSString stringWithFormat:@"%@289382458", str];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}
但是当我点击按钮时什么都没有发生,我需要设置一个警报视图来显示像 ratethisapp 这样的普通警报,不,谢谢,稍后。如果我点击 ratethisapp,我将重定向到 appstore 的铃声页面。如何激活?提前致谢。
【问题讨论】:
-
你是在模拟器上测试还是在设备上测试?
-
@直到先生我在刺激器中测试它
-
那么尼克洛克伍德的以下回答适用 - 你应该投票并接受它。