Skip to content

Commit 7ee79f6

Browse files
committed
For iPad - Adjust
1 parent f4f05cb commit 7ee79f6

15 files changed

Lines changed: 26 additions & 25 deletions

Coding_iOS/Controllers/ConversationViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
209209

210210
}
211211
}];
212-
[actionSheet showInView:nil];
212+
[actionSheet showInView:self.view];
213213
};
214214
cell.refreshMessageMediaCCellBlock = ^(CGFloat diff){
215215
// ESStrongSelf;
@@ -259,7 +259,7 @@ - (void)showAlertToDeleteMessage:(PrivateMessage *)toDeleteMsg{
259259
[_self deletePrivateMessageWithMsg:_messageToResendOrDelete];
260260
}
261261
}];
262-
[actionSheet showInView:nil];
262+
[actionSheet showInView:self.view];
263263
}
264264

265265
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{

Coding_iOS/Controllers/EditTaskViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
328328
[weakSelf deleteTask:toDelete];
329329
}
330330
}];
331-
[actionSheet showInView:nil];
331+
[actionSheet showInView:self.view];
332332
};
333333
cell.descriptionBtnClickedBlock = ^(Task *task){
334334
if (weakSelf.myCopyTask.has_description.boolValue && !weakSelf.myCopyTask.task_description) {
@@ -511,7 +511,7 @@ - (void)doCommentToComment:(TaskComment *)toComment sender:(id)sender{
511511
[weakSelf deleteComment:weakSelf.toComment];
512512
}
513513
}];
514-
[actionSheet showInView:nil];
514+
[actionSheet showInView:self.view];
515515
return;
516516
}
517517
}

Coding_iOS/Controllers/FileListViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ - (void)swipeableTableViewCell:(SWTableViewCell *)cell didTriggerRightUtilityBut
432432
[weakSelf deleteFolder:folder];
433433
}
434434
}];
435-
[actionSheet showInView:nil];
435+
[actionSheet showInView:self.view];
436436
}
437437
}else{
438438
ProjectFile *file = [_myFiles.list objectAtIndex:(indexPath.row - _curFolder.sub_folders.count - _uploadFiles.count)];
@@ -517,7 +517,7 @@ - (void)deleteFile:(ProjectFile *)file{
517517
}
518518
}];
519519
}
520-
[actionSheet showInView:nil];
520+
[actionSheet showInView:self.view];
521521
}
522522
- (void)deleteFile:(ProjectFile *)file fromDisk:(BOOL)fromDisk{
523523

Coding_iOS/Controllers/FileViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ - (void)rightNavBtnClicked{
215215
break;
216216
}
217217
}];
218-
[actionSheet showInView:nil];
218+
[actionSheet showInView:self.view];
219219
}else{
220220
[self.docInteractionController presentOpenInMenuFromBarButtonItem:self.navigationItem.rightBarButtonItem animated:YES];
221221
}

Coding_iOS/Controllers/MeSetting/SettingMineInfoViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
189189
switch (indexPath.row) {
190190
case 0:{//头像
191191
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"更换头像" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"拍照", @"从相册选择", nil];
192-
[actionSheet showInView:nil];
192+
[actionSheet showInView:self.view];
193193
}
194194
break;
195195
case 1:{//昵称

Coding_iOS/Controllers/MeSetting/SettingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ - (UIView*)tableFooterView{
155155

156156
- (void)loginOutBtnClicked:(id)sender{
157157
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"确定要退出当前账号" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定退出" otherButtonTitles: nil];
158-
[actionSheet showInView:nil];
158+
[actionSheet showInView:self.view];
159159
}
160160

161161
#pragma mark UIActionSheetDelegate M

Coding_iOS/Controllers/ProjectMemberListViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
217217
[weakSelf quitSelf_ProjectMember:curMember];
218218
}
219219
}];
220-
[actionSheet showInView:nil];
220+
[actionSheet showInView:self.view];
221221
}else{
222222
// 别人,发起私信
223223
if (_type == ProMemTypeProject) {
@@ -301,7 +301,7 @@ - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEd
301301
[weakSelf removeMember:curMember inTableView:tableView];
302302
}
303303
}];
304-
[actionSheet showInView:nil];
304+
[actionSheet showInView:self.view];
305305
}
306306

307307
- (void)removeMember:(ProjectMember *)curMember inTableView:(UITableView *)tableView{

Coding_iOS/Controllers/RootControllers/Message_RootViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEd
258258
[weakSelf removeConversation:msg inTableView:tableView];
259259
}
260260
}];
261-
[actionSheet showInView:nil];
261+
[actionSheet showInView:self.view];
262262
}
263263

264264
- (void)removeConversation:(PrivateMessage *)curMsg inTableView:(UITableView *)tableView{

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
326326
[_self deleteComment:comment ofTweet:_self.commentTweet];
327327
}
328328
}];
329-
[actionSheet showInView:nil];
329+
[actionSheet showInView:self.view];
330330
return;
331331
}
332332
}else{
@@ -362,7 +362,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
362362
[_self deleteTweet:_self.deleteTweet outTweetsIndex:_self.deleteTweetsIndex];
363363
}
364364
}];
365-
[actionSheet showInView:nil];
365+
[actionSheet showInView:self.view];
366366
};
367367
cell.goToDetailTweetBlock = ^(Tweet *curTweet){
368368
[self goToDetailWithTweet:curTweet];

Coding_iOS/Controllers/TopicDetailViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
249249
[weakSelf deleteTopic:weakSelf.curTopic isComment:NO];
250250
}
251251
}];
252-
[actionSheet showInView:nil];
252+
[actionSheet showInView:self.view];
253253
};
254254
[tableView addLineforPlainCell:cell forRowAtIndexPath:indexPath withLeftSpace:0];
255255
return cell;
@@ -299,7 +299,7 @@ - (void)doCommentToTopic:(ProjectTopic *)toComment sender:(id)sender{
299299
[_self deleteTopic:_self.toComment isComment:YES];
300300
}
301301
}];
302-
[actionSheet showInView:nil];
302+
[actionSheet showInView:self.view];
303303
return;
304304
}
305305
}

0 commit comments

Comments
 (0)