//chenyong 原来可以直接把这个连接弄出来就行 ,但还不是很明白,下边的网址是如何来的
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=577100152"]];
全文如下:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSInteger section = indexPath.section;
NSInteger row = indexPath.row;
if (section == 0) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.ganchi.net"]];
}
else if (section == 1) {
if (row == 0) {
GCFankuiViewController *fankuiController = [[GCFankuiViewController alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:fankuiController animated:YES];
[fankuiController release];
}
else if(row == 1)
{
//chenyong 原来可以直接把这个连接弄出来就行
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=577100152"]];
}
}
else if(section == 2)
{
if (row == 0) {
DMUserConfig * cfg = [DMUserConfig sharedConfigDocument];
if (cfg.isLogined) {
GCPersonalViewController *viewController = [[GCPersonalViewController alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:viewController animated:YES];
[viewController release];
return;
}
[self LoginButtonAction];
return;
}
else if(row == 1)
{
DMAboutController *viewController = [[DMAboutController alloc] initWithNibName:nil bundle:nil];
[self.navigationController pushViewController:viewController animated:YES];
[viewController release];
}
// else if(row == 2)
// {
// [self LoginButtonAction];
// }
}
return;
}