diff --git a/ios/RetroArch.xcodeproj/project.pbxproj b/ios/RetroArch.xcodeproj/project.pbxproj index 3c3b249c0e..d2b1116807 100644 --- a/ios/RetroArch.xcodeproj/project.pbxproj +++ b/ios/RetroArch.xcodeproj/project.pbxproj @@ -808,7 +808,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "RetroArch/RetroArch-Prefix.pch"; INFOPLIST_FILE = "RetroArch/RetroArch-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)\"", @@ -844,7 +844,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "RetroArch/RetroArch-Prefix.pch"; INFOPLIST_FILE = "RetroArch/RetroArch-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)\"", diff --git a/ios/RetroArch/RADirectoryList.m b/ios/RetroArch/RADirectoryList.m index 9a82d214e7..a25cb9c2d3 100644 --- a/ios/RetroArch/RADirectoryList.m +++ b/ios/RetroArch/RADirectoryList.m @@ -46,11 +46,14 @@ static NSString* check_path(NSString* path) { path = check_path(path); - NSString* coverDir = path ? [path stringByAppendingPathComponent:@".coverart"] : nil; - if (coverDir && ra_ios_is_directory(coverDir) && ra_ios_is_file([coverDir stringByAppendingPathComponent:@"template.png"])) - return [[RADirectoryGrid alloc] initWithPath:path filter:regex]; - else - return [[RADirectoryList alloc] initWithPath:path filter:regex]; + if ([UICollectionViewController instancesRespondToSelector:@selector(initWithCollectionViewLayout:)]) + { + NSString* coverDir = path ? [path stringByAppendingPathComponent:@".coverart"] : nil; + if (coverDir && ra_ios_is_directory(coverDir) && ra_ios_is_file([coverDir stringByAppendingPathComponent:@"template.png"])) + return [[RADirectoryGrid alloc] initWithPath:path filter:regex]; + } + + return [[RADirectoryList alloc] initWithPath:path filter:regex]; } - (id)initWithPath:(NSString*)path filter:(NSRegularExpression*)regex