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
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-11-24 17:38:55 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-11-24 17:41:11 +0300
commit34d6f335f68a7ced6ef0f34d94062a6aa5539202 (patch)
treef2c644788d403acfdf1e1039f46519b64e32a6b9 /platform
parent1dc50b4ce518ba250fc3bacea447e82b23b6f3dd (diff)
Implementing IsTablet for ios.
Diffstat (limited to 'platform')
-rw-r--r--platform/platform_ios.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm
index b51b14dcb0..e12d91ff25 100644
--- a/platform/platform_ios.mm
+++ b/platform/platform_ios.mm
@@ -202,6 +202,8 @@ CustomIOSPlatform::CustomIOSPlatform()
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+ m_isTablet = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
+
NSBundle * bundle = [NSBundle mainBundle];
NSString * path = [bundle resourcePath];
m_resourcesDir = [path UTF8String];