1,跳转到App Store:
NSString *str = [NSString
stringWithFormat:@"http://itunes.apple.com/us/app/id%d",
436957167];
[[UIApplication sharedApplication] openURL:[NSURL
urlWithString:str]];
436957167是App ID
2,跳转到评价页面:
NSString *str
= [NSString stringWithFormat:
@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",436957167
];
[[UIApplication sharedApplication] openURL:[NSURL
urlWithString:str]];
3,直接跳转到App Store:
http://phobos.apple.com/。。。。
object-c源码 在写一个ane for ios 在里面多加一个方法,调用以上源码就OK,记得import UIKIT.h
时间: 2024-12-11 06:14:52