From 171b6cd02bfed572f1881c9483efccdd5c06754e Mon Sep 17 00:00:00 2001 From: Kirill Zhdanovich Date: Mon, 1 Jul 2013 11:33:24 +0300 Subject: [PATCH] [iOS] Method for screen rotation for device with iOS < iOS6 --- iphone/Maps/Classes/PlacePreviewViewController.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iphone/Maps/Classes/PlacePreviewViewController.mm b/iphone/Maps/Classes/PlacePreviewViewController.mm index 9fcaaa45e6..572b6b3747 100644 --- a/iphone/Maps/Classes/PlacePreviewViewController.mm +++ b/iphone/Maps/Classes/PlacePreviewViewController.mm @@ -355,4 +355,10 @@ typedef enum {APIPOINT, POI, MYPOSITION} Type; self.placeAndCompass = nil; [super dealloc]; } + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return YES; +} + @end