Skip to content

Commit 923498e

Browse files
committed
屏幕旋转
1 parent df677b9 commit 923498e

9 files changed

Lines changed: 14 additions & 11 deletions

Coding_iOS/Coding_iOS-Prefix.pch

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
#import "UIImageView+WebCache.h"
4242
#import <Masonry/Masonry.h>
4343

44+
#import "BaseNavigationController.h"
45+
#import "BaseViewController.h"
46+
4447
#endif
4548
//友盟统计
4649
#define kUmeng_AppKey @"54465c6ffd98c5c2c20041a2"

Coding_iOS/Controllers/ConversationViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ - (void)inputViewAddIndex:(NSInteger)index{
351351
imagePickerController.delegate = self;
352352
imagePickerController.allowsMultipleSelection = YES;
353353
imagePickerController.maximumNumberOfSelection = 6;
354-
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:imagePickerController];
354+
UINavigationController *navigationController = [[BaseNavigationController alloc] initWithRootViewController:imagePickerController];
355355
[self presentViewController:navigationController animated:YES completion:NULL];
356356
}
357357
break;

Coding_iOS/Controllers/FileListViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ - (void)easeToolBar:(EaseToolBar *)toolBar didClickedIndex:(NSInteger)index{
243243
imagePickerController.delegate = self;
244244
imagePickerController.allowsMultipleSelection = YES;
245245
imagePickerController.maximumNumberOfSelection = 6;
246-
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:imagePickerController];
246+
UINavigationController *navigationController = [[BaseNavigationController alloc] initWithRootViewController:imagePickerController];
247247
[self presentViewController:navigationController animated:YES completion:NULL];
248248
}
249249
break;
@@ -565,7 +565,7 @@ - (void)moveFile:(ProjectFile *)file fromFolder:(ProjectFolder *)folder{
565565
}];
566566
};
567567

568-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
568+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
569569
[self presentViewController:nav animated:YES completion:nil];
570570
}
571571
#pragma mark toVC

Coding_iOS/Controllers/MeSetting/SettingTextViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ +(void)showSettingFolderNameVCFromVC:(UIViewController *)preVc withTitle:(NSStri
2929
SettingTextViewController *vc = [self settingTextVCWithTitle:title textValue:textValue doneBlock:block];
3030
vc.settingType = type;
3131
if (preVc) {
32-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
32+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
3333
[preVc presentViewController:nav animated:YES completion:nil];
3434
}else{
35-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
35+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
3636
[[BaseViewController presentingVC] presentViewController:nav animated:YES completion:nil];
3737
}
3838
}

Coding_iOS/Controllers/ProjectMemberListViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ + (void)showATSomeoneWithBlock:(void(^)(User *curUser))block withProject:(Projec
157157
ProjectMemberListViewController *vc = [[ProjectMemberListViewController alloc] init];
158158
[vc setFrame:[UIView frameWithOutNav] project:project type:ProMemTypeAT refreshBlock:nil selectBlock:nil cellBtnBlock:nil];
159159
vc.selectUserBlock = block;
160-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
160+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
161161
[[BaseViewController presentingVC] presentViewController:nav animated:YES completion:nil];
162162
}
163163

Coding_iOS/Controllers/RootControllers/BaseViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ + (UIViewController *)presentingVC{
209209
}
210210

211211
+ (void)presentViewController:(UIViewController *)viewController{
212-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:viewController];
212+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:viewController];
213213
viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"关闭" style:UIBarButtonItemStylePlain target:viewController action:@selector(dismissModalViewControllerAnimated:)];
214214
[[self presentingVC] presentViewController:nav animated:YES completion:nil];
215215
}

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ - (void)sendTweet{
193193
}];
194194

195195
};
196-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
196+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
197197
[self presentViewController:nav animated:YES completion:nil];
198198

199199
}

Coding_iOS/Controllers/TweetSendViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSIn
150150
imagePickerController.delegate = self;
151151
imagePickerController.allowsMultipleSelection = YES;
152152
imagePickerController.maximumNumberOfSelection = 6-_curTweet.tweetImages.count;
153-
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:imagePickerController];
153+
UINavigationController *navigationController = [[BaseNavigationController alloc] initWithRootViewController:imagePickerController];
154154
[self presentViewController:navigationController animated:YES completion:NULL];
155155
}
156156

Coding_iOS/Controllers/UsersViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ + (void)showATSomeoneWithBlock:(void(^)(User *curUser))block{
3131
UsersViewController *vc = [[UsersViewController alloc] init];
3232
vc.curUsers = [Users usersWithOwner:[Login curLoginUser] Type:UsersTypeFriends_At];
3333
vc.selectUserBlock = block;
34-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
34+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
3535
[[BaseViewController presentingVC] presentViewController:nav animated:YES completion:nil];
3636
}
3737
+ (void)showTranspondMessage:(PrivateMessage *)curMessage withBlock:(void(^)(PrivateMessage *curMessage))block{
3838
UsersViewController *vc = [[UsersViewController alloc] init];
3939
vc.curUsers = [Users usersWithOwner:[Login curLoginUser] Type:UsersTypeFriends_Transpond];
4040
vc.curMessage = curMessage;
4141
vc.transpondMessageBlock = block;
42-
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
42+
UINavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:vc];
4343
[[BaseViewController presentingVC] presentViewController:nav animated:YES completion:nil];
4444
}
4545
- (void)viewDidLoad{

0 commit comments

Comments
 (0)