Skip to content

Commit

Permalink
加入评分功能
Browse files Browse the repository at this point in the history
1.细节优化
2.评分功能加入
3.更改版本号
  • Loading branch information
midoks committed Jan 25, 2016
1 parent 53a3b7d commit 7636ec3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions dnspod/dnspod/Info.plist
Expand Up @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.5</string>
<string>1.3.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3</string>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
1 change: 1 addition & 0 deletions dnspod/dnspod/UIDnsPod/MDnsPodTop/MLoginViewController.m
Expand Up @@ -323,6 +323,7 @@ - (void) startCheckLogin
}
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
[self hudClose];
[_loginButton setTitle:@"登陆" forState:UIControlStateNormal];
[self showAlert:@"提示" msg:@"网络不畅通" time:3.0f];
}];
}
Expand Down
21 changes: 18 additions & 3 deletions dnspod/dnspod/UIDnsPod/MSetting/MSettingViewController.m
Expand Up @@ -66,7 +66,7 @@ -(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
if (section == 0) {
return 1;
}else if(section == 1){
return 3;
return 4;
} else if (section == 2) {
return 1;
}
Expand Down Expand Up @@ -94,15 +94,19 @@ -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NS
}else if(indexPath.section == 1){
if (indexPath.row == 0) {
cell.textLabel.text = @"关于我们";
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}else if(indexPath.row == 1){
cell.textLabel.text = @"反馈或建议";
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}else if (indexPath.row == 2){
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
cell.textLabel.text = @"版本";
cell.detailTextLabel.text = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
//cell.textLabel.text = ;
} else if (indexPath.row == 3){
cell.textLabel.text = @"去评分";
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

} else if (indexPath.section == 2) {
cell.textLabel.textAlignment = NSTextAlignmentCenter;
cell.textLabel.textColor = [UIColor redColor];
Expand All @@ -124,6 +128,8 @@ -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *
[self goAboutWe];
}else if(indexPath.row ==1){
[self adviseWe];
} else if (indexPath.row == 3){
[self goAppScore];
}
}else if(indexPath.section == 2){
[self goUserExit];
Expand Down Expand Up @@ -196,6 +202,15 @@ -(void) touchIDValidate:(id)sender
}
}

#pragma mark - 去评分 -
-(void)goAppScore
{
NSString *url = [NSString stringWithFormat:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%d&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8", 1059963031];
NSURL *goUrl = [[NSURL alloc] initWithString:url];
//NSLog(@"%@",goUrl);
[[UIApplication sharedApplication] openURL:goUrl];
}

#pragma mark - 账户注销 -
-(void)goUserExit
{
Expand Down

0 comments on commit 7636ec3

Please sign in to comment.