File tree Expand file tree Collapse file tree
SIAlertViewExample/SIAlertViewExample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,6 +163,21 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
163163 [self .alertView invaliadateLayout ];
164164}
165165
166+ - (NSUInteger )supportedInterfaceOrientations
167+ {
168+ return UIInterfaceOrientationMaskAll;
169+ }
170+
171+ - (BOOL )shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation
172+ {
173+ return YES ;
174+ }
175+
176+ - (BOOL )shouldAutorotate
177+ {
178+ return YES ;
179+ }
180+
166181@end
167182
168183#pragma mark - SIAlert
Original file line number Diff line number Diff line change @@ -203,4 +203,19 @@ - (IBAction)alert4:(id)sender
203203 [self alert3: nil ];
204204}
205205
206+ - (NSUInteger )supportedInterfaceOrientations
207+ {
208+ return UIInterfaceOrientationMaskAll;
209+ }
210+
211+ - (BOOL )shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation)toInterfaceOrientation
212+ {
213+ return YES ;
214+ }
215+
216+ - (BOOL )shouldAutorotate
217+ {
218+ return YES ;
219+ }
220+
206221@end
You can’t perform that action at this time.
0 commit comments