forked from organicmaps/organicmaps
Implementing IsTablet for ios.
This commit is contained in:
parent
1dc50b4ce5
commit
34d6f335f6
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue