Skip to content

Commit f369ec9

Browse files
committed
修复全屏时候键盘方向错误
1 parent f237b38 commit f369ec9

File tree

10 files changed

+282
-207
lines changed

10 files changed

+282
-207
lines changed

PlayerDemo.xcodeproj/project.pbxproj

+2-10
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@
5656
BF1624AC1DF50011006209D1 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF1624521DF50011006209D1 /* BaseViewController.m */; };
5757
BF1624AD1DF50011006209D1 /* DetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF1624541DF50011006209D1 /* DetailViewController.m */; };
5858
BF1624AF1DF50011006209D1 /* SinaNewsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF1624581DF50011006209D1 /* SinaNewsViewController.m */; };
59-
BF1624B01DF50011006209D1 /* SinaNewsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BF1624591DF50011006209D1 /* SinaNewsViewController.xib */; };
6059
BF1624B11DF50011006209D1 /* TencentNewsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF16245B1DF50011006209D1 /* TencentNewsViewController.m */; };
61-
BF1624B21DF50011006209D1 /* TencentNewsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BF16245C1DF50011006209D1 /* TencentNewsViewController.xib */; };
6260
BF1624B31DF50011006209D1 /* TestViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BF16245E1DF50011006209D1 /* TestViewController.m */; };
6361
BF1624B41DF50011006209D1 /* TestViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = BF16245F1DF50011006209D1 /* TestViewController.xib */; };
6462
BF1624C31DF50182006209D1 /* FastForwardView.m in Sources */ = {isa = PBXBuildFile; fileRef = BF1624BC1DF50182006209D1 /* FastForwardView.m */; };
@@ -174,10 +172,8 @@
174172
BF1624541DF50011006209D1 /* DetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DetailViewController.m; sourceTree = "<group>"; };
175173
BF1624571DF50011006209D1 /* SinaNewsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SinaNewsViewController.h; sourceTree = "<group>"; };
176174
BF1624581DF50011006209D1 /* SinaNewsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SinaNewsViewController.m; sourceTree = "<group>"; };
177-
BF1624591DF50011006209D1 /* SinaNewsViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SinaNewsViewController.xib; sourceTree = "<group>"; };
178175
BF16245A1DF50011006209D1 /* TencentNewsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TencentNewsViewController.h; sourceTree = "<group>"; };
179176
BF16245B1DF50011006209D1 /* TencentNewsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TencentNewsViewController.m; sourceTree = "<group>"; };
180-
BF16245C1DF50011006209D1 /* TencentNewsViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TencentNewsViewController.xib; sourceTree = "<group>"; };
181177
BF16245D1DF50011006209D1 /* TestViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestViewController.h; sourceTree = "<group>"; };
182178
BF16245E1DF50011006209D1 /* TestViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestViewController.m; sourceTree = "<group>"; };
183179
BF16245F1DF50011006209D1 /* TestViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TestViewController.xib; sourceTree = "<group>"; };
@@ -430,12 +426,10 @@
430426
BF1624521DF50011006209D1 /* BaseViewController.m */,
431427
BF1624531DF50011006209D1 /* DetailViewController.h */,
432428
BF1624541DF50011006209D1 /* DetailViewController.m */,
433-
BF1624571DF50011006209D1 /* SinaNewsViewController.h */,
434-
BF1624581DF50011006209D1 /* SinaNewsViewController.m */,
435-
BF1624591DF50011006209D1 /* SinaNewsViewController.xib */,
436429
BF16245A1DF50011006209D1 /* TencentNewsViewController.h */,
437430
BF16245B1DF50011006209D1 /* TencentNewsViewController.m */,
438-
BF16245C1DF50011006209D1 /* TencentNewsViewController.xib */,
431+
BF1624571DF50011006209D1 /* SinaNewsViewController.h */,
432+
BF1624581DF50011006209D1 /* SinaNewsViewController.m */,
439433
BF16245D1DF50011006209D1 /* TestViewController.h */,
440434
BF16245E1DF50011006209D1 /* TestViewController.m */,
441435
BF16245F1DF50011006209D1 /* TestViewController.xib */,
@@ -582,8 +576,6 @@
582576
C4EC7F4F1DF4FCD3006E9820 /* LaunchScreen.storyboard in Resources */,
583577
BF1624C61DF50182006209D1 /* WMPlayer.bundle in Resources */,
584578
C4EC7F4C1DF4FCD3006E9820 /* Assets.xcassets in Resources */,
585-
BF1624B01DF50011006209D1 /* SinaNewsViewController.xib in Resources */,
586-
BF1624B21DF50011006209D1 /* TencentNewsViewController.xib in Resources */,
587579
BF1624AA1DF50011006209D1 /* VideoCell.xib in Resources */,
588580
BF1624841DF50011006209D1 /* MBProgressHUD.bundle in Resources */,
589581
BF1624941DF50011006209D1 /* MJRefresh.bundle in Resources */,

PlayerDemo.xcworkspace/xcuserdata/zhengwenming.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

+98
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,102 @@
22
<Bucket
33
type = "0"
44
version = "2.0">
5+
<Breakpoints>
6+
<BreakpointProxy
7+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8+
<BreakpointContent
9+
shouldBeEnabled = "Yes"
10+
ignoreCount = "0"
11+
continueAfterRunningActions = "No"
12+
filePath = "PlayerDemo/ViewControllers/DetailViewController.m"
13+
timestampString = "514055717.592528"
14+
startingColumnNumber = "9223372036854775807"
15+
endingColumnNumber = "9223372036854775807"
16+
startingLineNumber = "114"
17+
endingLineNumber = "114"
18+
landmarkName = "-onDeviceOrientationChange:"
19+
landmarkType = "7">
20+
</BreakpointContent>
21+
</BreakpointProxy>
22+
<BreakpointProxy
23+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
24+
<BreakpointContent
25+
shouldBeEnabled = "Yes"
26+
ignoreCount = "0"
27+
continueAfterRunningActions = "No"
28+
filePath = "PlayerDemo/ViewControllers/DetailViewController.m"
29+
timestampString = "514055717.592528"
30+
startingColumnNumber = "9223372036854775807"
31+
endingColumnNumber = "9223372036854775807"
32+
startingLineNumber = "120"
33+
endingLineNumber = "120"
34+
landmarkName = "-onDeviceOrientationChange:"
35+
landmarkType = "7">
36+
</BreakpointContent>
37+
</BreakpointProxy>
38+
<BreakpointProxy
39+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
40+
<BreakpointContent
41+
shouldBeEnabled = "Yes"
42+
ignoreCount = "0"
43+
continueAfterRunningActions = "No"
44+
filePath = "PlayerDemo/ViewControllers/DetailViewController.m"
45+
timestampString = "514055717.592528"
46+
startingColumnNumber = "9223372036854775807"
47+
endingColumnNumber = "9223372036854775807"
48+
startingLineNumber = "128"
49+
endingLineNumber = "128"
50+
landmarkName = "-onDeviceOrientationChange:"
51+
landmarkType = "7">
52+
</BreakpointContent>
53+
</BreakpointProxy>
54+
<BreakpointProxy
55+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
56+
<BreakpointContent
57+
shouldBeEnabled = "Yes"
58+
ignoreCount = "0"
59+
continueAfterRunningActions = "No"
60+
filePath = "PlayerDemo/ViewControllers/DetailViewController.m"
61+
timestampString = "514055717.592528"
62+
startingColumnNumber = "9223372036854775807"
63+
endingColumnNumber = "9223372036854775807"
64+
startingLineNumber = "122"
65+
endingLineNumber = "122"
66+
landmarkName = "-onDeviceOrientationChange:"
67+
landmarkType = "7">
68+
</BreakpointContent>
69+
</BreakpointProxy>
70+
<BreakpointProxy
71+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
72+
<BreakpointContent
73+
shouldBeEnabled = "Yes"
74+
ignoreCount = "0"
75+
continueAfterRunningActions = "No"
76+
filePath = "PlayerDemo/ViewControllers/DetailViewController.m"
77+
timestampString = "514055717.592528"
78+
startingColumnNumber = "9223372036854775807"
79+
endingColumnNumber = "9223372036854775807"
80+
startingLineNumber = "136"
81+
endingLineNumber = "136"
82+
landmarkName = "-onDeviceOrientationChange:"
83+
landmarkType = "7">
84+
</BreakpointContent>
85+
</BreakpointProxy>
86+
<BreakpointProxy
87+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
88+
<BreakpointContent
89+
shouldBeEnabled = "Yes"
90+
ignoreCount = "0"
91+
continueAfterRunningActions = "No"
92+
filePath = "PlayerDemo/ViewControllers/DetailViewController.m"
93+
timestampString = "514055717.592528"
94+
startingColumnNumber = "9223372036854775807"
95+
endingColumnNumber = "9223372036854775807"
96+
startingLineNumber = "144"
97+
endingLineNumber = "144"
98+
landmarkName = "-onDeviceOrientationChange:"
99+
landmarkType = "7">
100+
</BreakpointContent>
101+
</BreakpointProxy>
102+
</Breakpoints>
5103
</Bucket>

PlayerDemo/AppDelegate.m

+2-14
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,8 @@ @interface AppDelegate ()
1515
@end
1616

1717
@implementation AppDelegate
18-
-(BOOL)shouldAutorotate{
19-
return NO;
20-
}
21-
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
22-
{
23-
return UIInterfaceOrientationMaskPortrait;
24-
}
25-
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
26-
{
27-
return YES;
28-
}
29-
3018
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
31-
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
19+
// self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
3220
[[DataManager shareManager] getSIDArrayWithURLString:@"http://c.m.163.com/nc/video/home/0-10.html"
3321
success:^(NSArray *sidArray, NSArray *videoArray) {
3422
self.sidArray =[NSArray arrayWithArray:sidArray];
@@ -44,7 +32,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
4432

4533

4634

47-
self.window.rootViewController = self.tabbar = [[RootTabBarController alloc]init];
35+
// self.window.rootViewController = self.tabbar = [[RootTabBarController alloc]init];
4836

4937

5038
//截图返回,地址为https://github.com/zhengwenming/ScreenShotBack

0 commit comments

Comments
 (0)