Implementing IsTablet for ios.

This commit is contained in:
Vladimir Byko-Ianko 2015-11-24 17:38:55 +03:00
parent 1dc50b4ce5
commit 34d6f335f6

View file

@ -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];