Skip to content

Commit 1c6061f

Browse files
committed
换头像 - 非常规操作会崩溃
1 parent c143cd8 commit 1c6061f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Coding_iOS/Controllers/MeSetting/SettingMineInfoViewController.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#import "SettingTextViewController.h"
2121
#import "Helper.h"
2222
#import "UserInfoDetailTagCell.h"
23+
#import "JDStatusBarNotification.h"
2324

2425
@interface SettingMineInfoViewController ()
2526
@property (strong, nonatomic) UITableView *myTableView;
@@ -192,8 +193,10 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
192193
case 0:{
193194
switch (indexPath.row) {
194195
case 0:{//头像
195-
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"更换头像" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"拍照", @"从相册选择", nil];
196-
[actionSheet showInView:self.view];
196+
if (![JDStatusBarNotification isVisible]) {
197+
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"更换头像" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"拍照", @"从相册选择", nil];
198+
[actionSheet showInView:self.view];
199+
}
197200
}
198201
break;
199202
case 1:{//昵称

0 commit comments

Comments
 (0)