Skip to content

Commit f29efc0

Browse files
committed
项目图片和描述等修改成功后跳转到项目首页
1 parent 44aa68d commit f29efc0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Coding_iOS/Controllers/ProjectSetting/ProjectSettingViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ -(void)submit{
6565
// 更新项目
6666
[[Coding_NetAPIManager sharedManager] request_UpdateProject_WithObj:self.project andBlock:^(Project *data, NSError *error) {
6767
if (!error) {
68-
[self.navigationController popToRootViewControllerAnimated:YES];
68+
[self.navigationController popViewControllerAnimated:YES];
6969
}
7070
self.submitButtonItem.enabled = YES;
7171
}];
@@ -106,6 +106,7 @@ -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingM
106106
if (dataDic) {
107107
self.project.icon = dataDic[@"icon"];
108108
[[[SDWebImageManager sharedManager] imageCache] storeImage:image forKey:self.project.icon];
109+
[self.navigationController popViewControllerAnimated:YES];
109110
}
110111
//
111112
self.projectImageView.image = image;

0 commit comments

Comments
 (0)