Skip to content

Commit 7a350b7

Browse files
committed
Xcode 7 - fix
1 parent b9a6827 commit 7a350b7

21 files changed

Lines changed: 39 additions & 34 deletions

Coding_iOS/Controllers/CodeViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ - (BOOL)shouldAutorotate {
6161
return YES;
6262
}
6363

64-
- (NSUInteger)supportedInterfaceOrientations{
64+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
6565
return UIInterfaceOrientationMaskAllButUpsideDown;
6666
}
6767

Coding_iOS/Controllers/FileChangeDetailViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ - (BOOL)shouldAutorotate {
8989
return YES;
9090
}
9191

92-
- (NSUInteger)supportedInterfaceOrientations{
92+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
9393
return UIInterfaceOrientationMaskAllButUpsideDown;
9494
}
9595

Coding_iOS/Controllers/FileViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ - (void)loadWebView:(NSURL *)fileUrl{
145145
}else if ([self.curFile.fileType isEqualToString:@"plist"]
146146
|| [self.curFile.fileType isEqualToString:@"txt"]){
147147
NSData *fileData = [NSData dataWithContentsOfURL:fileUrl];
148-
[self.contentWebView loadData:fileData MIMEType:@"text/text" textEncodingName:@"UTF-8" baseURL:nil];
148+
[self.contentWebView loadData:fileData MIMEType:@"text/text" textEncodingName:@"UTF-8" baseURL:fileUrl];
149149
}else{
150150
[self.contentWebView loadRequest:[NSURLRequest requestWithURL:fileUrl]];
151151
}

Coding_iOS/Controllers/Login/IntroductionViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
9696
return UIInterfaceOrientationPortrait;
9797
}
9898

99-
- (NSUInteger)supportedInterfaceOrientations {
99+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
100100
return UIInterfaceOrientationMaskPortrait;
101101
}
102102

Coding_iOS/Controllers/NewProject/NewProjectTypeViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
170170
return UIInterfaceOrientationPortrait;
171171
}
172172

173-
- (NSUInteger)supportedInterfaceOrientations {
173+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
174174
return UIInterfaceOrientationMaskPortrait;
175175
}
176176

Coding_iOS/Controllers/NewProject/NewProjectViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
257257
return UIInterfaceOrientationPortrait;
258258
}
259259

260-
- (NSUInteger)supportedInterfaceOrientations {
260+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
261261
return UIInterfaceOrientationMaskPortrait;
262262
}
263263

Coding_iOS/Controllers/ProjectSetting/ProjectAdvancedSettingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
168168
return UIInterfaceOrientationPortrait;
169169
}
170170

171-
- (NSUInteger)supportedInterfaceOrientations {
171+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
172172
return UIInterfaceOrientationMaskPortrait;
173173
}
174174

Coding_iOS/Controllers/ProjectSetting/ProjectSettingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
201201
return UIInterfaceOrientationPortrait;
202202
}
203203

204-
- (NSUInteger)supportedInterfaceOrientations {
204+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
205205
return UIInterfaceOrientationMaskPortrait;
206206
}
207207

Coding_iOS/Controllers/RootControllers/BaseNavigationController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
1818
return [self.visibleViewController preferredInterfaceOrientationForPresentation];
1919
}
2020

21-
- (NSUInteger)supportedInterfaceOrientations {
21+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
2222
return [self.visibleViewController supportedInterfaceOrientations];
2323
}
2424

Coding_iOS/Controllers/RootControllers/BaseViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
8888
return UIInterfaceOrientationPortrait;
8989
}
9090

91-
- (NSUInteger)supportedInterfaceOrientations {
91+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
9292
return UIInterfaceOrientationMaskPortrait;
9393
}
9494

0 commit comments

Comments
 (0)