Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-07-01 12:33:24 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:57:39 +0300
commit171b6cd02bfed572f1881c9483efccdd5c06754e (patch)
tree44e920db7b32063ab8980bb30325f4ec4ad485c7 /iphone
parent1010fc7a155c288a187493cff2a20ee00afb7227 (diff)
[iOS] Method for screen rotation for device with iOS < iOS6
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/PlacePreviewViewController.mm6
1 files changed, 6 insertions, 0 deletions
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