Commit 06de4c8 1 parent ed72bcf commit 06de4c8 Copy full SHA for 06de4c8
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,18 @@ - (void)dealloc
149
149
150
150
- (BOOL )shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation)interfaceOrientation
151
151
{
152
- if (self.detailViewController )
153
- {
152
+ if (self.masterViewController && self.detailViewController ) {
153
+ return [self .masterViewController shouldAutorotateToInterfaceOrientation: interfaceOrientation] && [self .detailViewController shouldAutorotateToInterfaceOrientation: interfaceOrientation];
154
+ }
155
+ else if (self.masterViewController ) {
156
+ return [self .masterViewController shouldAutorotateToInterfaceOrientation: interfaceOrientation];
157
+ }
158
+ else if (self.detailViewController ) {
154
159
return [self .detailViewController shouldAutorotateToInterfaceOrientation: interfaceOrientation];
155
160
}
156
-
157
- return YES ;
161
+ else {
162
+ return YES ;
163
+ }
158
164
}
159
165
160
166
You can’t perform that action at this time.
0 commit comments