Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial import.

  • Loading branch information...
commit eab77e0bf7ce5880d31184a88aafded8a237d2c1 0 parents
@borealkiss authored
3  .gitignore
@@ -0,0 +1,3 @@
+.DS_Store
+xcuserdata/
+project.xcworkspace/
7 BKUIIdiomController-SL/BKUIIdiomController-SL-Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'BKUIIdiomController-SL' target in the 'BKUIIdiomController-SL' project
+//
+
+#ifdef __OBJC__
+ #import <Foundation/Foundation.h>
+#endif
466 BKUIIdiomController.xcodeproj/project.pbxproj
@@ -0,0 +1,466 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 9306818E1490D608006F4C6E /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9306818D1490D608006F4C6E /* UIKit.framework */; };
+ 930681901490D608006F4C6E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9306818F1490D608006F4C6E /* Foundation.framework */; };
+ 930681921490D608006F4C6E /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 930681911490D608006F4C6E /* CoreGraphics.framework */; };
+ 930681981490D608006F4C6E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 930681971490D608006F4C6E /* main.m */; };
+ 9306819D1490D608006F4C6E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9306819C1490D608006F4C6E /* AppDelegate.m */; };
+ 930681A11490D608006F4C6E /* TestVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 930681A01490D608006F4C6E /* TestVC.m */; };
+ 930681A41490D608006F4C6E /* TestVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 930681A31490D608006F4C6E /* TestVC.xib */; };
+ 930681B11490D64B006F4C6E /* BKUIIdiomController.m in Sources */ = {isa = PBXBuildFile; fileRef = 930681AF1490D64B006F4C6E /* BKUIIdiomController.m */; };
+ 930681B31490D694006F4C6E /* TestVC-iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 930681B21490D694006F4C6E /* TestVC-iPad.xib */; };
+ 930681CA1490E06B006F4C6E /* TestVC2.m in Sources */ = {isa = PBXBuildFile; fileRef = 930681C91490E06B006F4C6E /* TestVC2.m */; };
+ 930681CF1490E0C8006F4C6E /* TestVC2.xib in Resources */ = {isa = PBXBuildFile; fileRef = 930681CE1490E0C8006F4C6E /* TestVC2.xib */; };
+ 9306820414911767006F4C6E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9306818F1490D608006F4C6E /* Foundation.framework */; };
+ 9306820F14911782006F4C6E /* BKUIIdiomController.m in Sources */ = {isa = PBXBuildFile; fileRef = 930681AF1490D64B006F4C6E /* BKUIIdiomController.m */; };
+ 9306821014911789006F4C6E /* BKUIIdiomController.h in Headers */ = {isa = PBXBuildFile; fileRef = 930681AE1490D64B006F4C6E /* BKUIIdiomController.h */; settings = {ATTRIBUTES = (Public, ); }; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 930681891490D608006F4C6E /* BKUIIdiomController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BKUIIdiomController.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9306818D1490D608006F4C6E /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 9306818F1490D608006F4C6E /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 930681911490D608006F4C6E /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 930681951490D608006F4C6E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ 930681961490D608006F4C6E /* Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = "<group>"; };
+ 930681971490D608006F4C6E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 9306819B1490D608006F4C6E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate/AppDelegate.h; sourceTree = "<group>"; };
+ 9306819C1490D608006F4C6E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Classes/AppDelegate/AppDelegate.m; sourceTree = "<group>"; };
+ 9306819F1490D608006F4C6E /* TestVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = TestVC.h; path = Classes/TestVC/TestVC.h; sourceTree = "<group>"; };
+ 930681A01490D608006F4C6E /* TestVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = TestVC.m; path = Classes/TestVC/TestVC.m; sourceTree = "<group>"; };
+ 930681A31490D608006F4C6E /* TestVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = TestVC.xib; path = Classes/TestVC/Resources/TestVC.xib; sourceTree = "<group>"; };
+ 930681AE1490D64B006F4C6E /* BKUIIdiomController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BKUIIdiomController.h; sourceTree = "<group>"; };
+ 930681AF1490D64B006F4C6E /* BKUIIdiomController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BKUIIdiomController.m; sourceTree = "<group>"; };
+ 930681B21490D694006F4C6E /* TestVC-iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = "TestVC-iPad.xib"; path = "Classes/TestVC/Resources/TestVC-iPad.xib"; sourceTree = "<group>"; };
+ 930681C81490E06B006F4C6E /* TestVC2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestVC2.h; sourceTree = "<group>"; };
+ 930681C91490E06B006F4C6E /* TestVC2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TestVC2.m; sourceTree = "<group>"; };
+ 930681CE1490E0C8006F4C6E /* TestVC2.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TestVC2.xib; sourceTree = "<group>"; };
+ 9306820314911767006F4C6E /* libBKUIIdiomController-SL.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libBKUIIdiomController-SL.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9306820714911767006F4C6E /* BKUIIdiomController-SL-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BKUIIdiomController-SL-Prefix.pch"; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 930681861490D608006F4C6E /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9306818E1490D608006F4C6E /* UIKit.framework in Frameworks */,
+ 930681901490D608006F4C6E /* Foundation.framework in Frameworks */,
+ 930681921490D608006F4C6E /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 9306820014911767006F4C6E /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9306820414911767006F4C6E /* Foundation.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9306817E1490D608006F4C6E = {
+ isa = PBXGroup;
+ children = (
+ 930681931490D608006F4C6E /* BKUIIdiomController */,
+ 9306820514911767006F4C6E /* BKUIIdiomController-SL */,
+ 9306818C1490D608006F4C6E /* Frameworks */,
+ 9306818A1490D608006F4C6E /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 9306818A1490D608006F4C6E /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 930681891490D608006F4C6E /* BKUIIdiomController.app */,
+ 9306820314911767006F4C6E /* libBKUIIdiomController-SL.a */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 9306818C1490D608006F4C6E /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 9306818D1490D608006F4C6E /* UIKit.framework */,
+ 9306818F1490D608006F4C6E /* Foundation.framework */,
+ 930681911490D608006F4C6E /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 930681931490D608006F4C6E /* BKUIIdiomController */ = {
+ isa = PBXGroup;
+ children = (
+ 930681991490D608006F4C6E /* Classes */,
+ 930681941490D608006F4C6E /* Supporting Files */,
+ );
+ path = BKUIIdiomController;
+ sourceTree = "<group>";
+ };
+ 930681941490D608006F4C6E /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 930681951490D608006F4C6E /* Info.plist */,
+ 930681961490D608006F4C6E /* Prefix.pch */,
+ 930681971490D608006F4C6E /* main.m */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ 930681991490D608006F4C6E /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ 930681AD1490D64B006F4C6E /* BKUIIdiomController */,
+ 9306819A1490D608006F4C6E /* AppDelegate */,
+ 9306819E1490D608006F4C6E /* TestVC */,
+ 930681C71490E03B006F4C6E /* TestVC2 */,
+ );
+ name = Classes;
+ sourceTree = "<group>";
+ };
+ 9306819A1490D608006F4C6E /* AppDelegate */ = {
+ isa = PBXGroup;
+ children = (
+ 9306819B1490D608006F4C6E /* AppDelegate.h */,
+ 9306819C1490D608006F4C6E /* AppDelegate.m */,
+ );
+ name = AppDelegate;
+ sourceTree = "<group>";
+ };
+ 9306819E1490D608006F4C6E /* TestVC */ = {
+ isa = PBXGroup;
+ children = (
+ 9306819F1490D608006F4C6E /* TestVC.h */,
+ 930681A01490D608006F4C6E /* TestVC.m */,
+ 930681A21490D608006F4C6E /* Resources */,
+ );
+ name = TestVC;
+ sourceTree = "<group>";
+ };
+ 930681A21490D608006F4C6E /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 930681A31490D608006F4C6E /* TestVC.xib */,
+ 930681B21490D694006F4C6E /* TestVC-iPad.xib */,
+ );
+ name = Resources;
+ sourceTree = "<group>";
+ };
+ 930681AD1490D64B006F4C6E /* BKUIIdiomController */ = {
+ isa = PBXGroup;
+ children = (
+ 930681AE1490D64B006F4C6E /* BKUIIdiomController.h */,
+ 930681AF1490D64B006F4C6E /* BKUIIdiomController.m */,
+ );
+ name = BKUIIdiomController;
+ path = Classes/BKUIIdiomController;
+ sourceTree = "<group>";
+ };
+ 930681C71490E03B006F4C6E /* TestVC2 */ = {
+ isa = PBXGroup;
+ children = (
+ 930681C81490E06B006F4C6E /* TestVC2.h */,
+ 930681C91490E06B006F4C6E /* TestVC2.m */,
+ 930681CD1490E0C8006F4C6E /* Resources */,
+ );
+ name = TestVC2;
+ path = Classes/TestVC2;
+ sourceTree = "<group>";
+ };
+ 930681CD1490E0C8006F4C6E /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 930681CE1490E0C8006F4C6E /* TestVC2.xib */,
+ );
+ path = Resources;
+ sourceTree = "<group>";
+ };
+ 9306820514911767006F4C6E /* BKUIIdiomController-SL */ = {
+ isa = PBXGroup;
+ children = (
+ 9306820614911767006F4C6E /* Supporting Files */,
+ );
+ path = "BKUIIdiomController-SL";
+ sourceTree = "<group>";
+ };
+ 9306820614911767006F4C6E /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 9306820714911767006F4C6E /* BKUIIdiomController-SL-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXHeadersBuildPhase section */
+ 9306820114911767006F4C6E /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9306821014911789006F4C6E /* BKUIIdiomController.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
+/* Begin PBXNativeTarget section */
+ 930681881490D608006F4C6E /* BKUIIdiomController */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 930681A71490D608006F4C6E /* Build configuration list for PBXNativeTarget "BKUIIdiomController" */;
+ buildPhases = (
+ 930681851490D608006F4C6E /* Sources */,
+ 930681861490D608006F4C6E /* Frameworks */,
+ 930681871490D608006F4C6E /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = BKUIIdiomController;
+ productName = BKUIIdiomController;
+ productReference = 930681891490D608006F4C6E /* BKUIIdiomController.app */;
+ productType = "com.apple.product-type.application";
+ };
+ 9306820214911767006F4C6E /* BKUIIdiomController-SL */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 9306820D14911767006F4C6E /* Build configuration list for PBXNativeTarget "BKUIIdiomController-SL" */;
+ buildPhases = (
+ 930681FF14911767006F4C6E /* Sources */,
+ 9306820014911767006F4C6E /* Frameworks */,
+ 9306820114911767006F4C6E /* Headers */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "BKUIIdiomController-SL";
+ productName = "BKUIIdiomController-SL";
+ productReference = 9306820314911767006F4C6E /* libBKUIIdiomController-SL.a */;
+ productType = "com.apple.product-type.library.static";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 930681801490D608006F4C6E /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0420;
+ ORGANIZATIONNAME = "boreal-kiss.com";
+ };
+ buildConfigurationList = 930681831490D608006F4C6E /* Build configuration list for PBXProject "BKUIIdiomController" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 9306817E1490D608006F4C6E;
+ productRefGroup = 9306818A1490D608006F4C6E /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 930681881490D608006F4C6E /* BKUIIdiomController */,
+ 9306820214911767006F4C6E /* BKUIIdiomController-SL */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 930681871490D608006F4C6E /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 930681A41490D608006F4C6E /* TestVC.xib in Resources */,
+ 930681B31490D694006F4C6E /* TestVC-iPad.xib in Resources */,
+ 930681CF1490E0C8006F4C6E /* TestVC2.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 930681851490D608006F4C6E /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 930681981490D608006F4C6E /* main.m in Sources */,
+ 9306819D1490D608006F4C6E /* AppDelegate.m in Sources */,
+ 930681A11490D608006F4C6E /* TestVC.m in Sources */,
+ 930681B11490D64B006F4C6E /* BKUIIdiomController.m in Sources */,
+ 930681CA1490E06B006F4C6E /* TestVC2.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 930681FF14911767006F4C6E /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9306820F14911782006F4C6E /* BKUIIdiomController.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ 930681A51490D608006F4C6E /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = (
+ armv7,
+ armv6,
+ );
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = "";
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 4.2;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ 930681A61490D608006F4C6E /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = (
+ armv7,
+ armv6,
+ );
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_VERSION = "";
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 4.2;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ };
+ name = Release;
+ };
+ 930681A81490D608006F4C6E /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = BKUIIdiomController/Prefix.pch;
+ INFOPLIST_FILE = BKUIIdiomController/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "-all_load",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)/usr/local/include";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 930681A91490D608006F4C6E /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = BKUIIdiomController/Prefix.pch;
+ INFOPLIST_FILE = BKUIIdiomController/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "-all_load",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)/usr/local/include";
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+ 9306820B14911767006F4C6E /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ DSTROOT = /tmp/BKUIIdiomController_SL.dst;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "BKUIIdiomController-SL/BKUIIdiomController-SL-Prefix.pch";
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+ OTHER_LDFLAGS = "-ObjC";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ };
+ name = Debug;
+ };
+ 9306820C14911767006F4C6E /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DSTROOT = /tmp/BKUIIdiomController_SL.dst;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "BKUIIdiomController-SL/BKUIIdiomController-SL-Prefix.pch";
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+ OTHER_LDFLAGS = "-ObjC";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 930681831490D608006F4C6E /* Build configuration list for PBXProject "BKUIIdiomController" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 930681A51490D608006F4C6E /* Debug */,
+ 930681A61490D608006F4C6E /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 930681A71490D608006F4C6E /* Build configuration list for PBXNativeTarget "BKUIIdiomController" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 930681A81490D608006F4C6E /* Debug */,
+ 930681A91490D608006F4C6E /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 9306820D14911767006F4C6E /* Build configuration list for PBXNativeTarget "BKUIIdiomController-SL" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 9306820B14911767006F4C6E /* Debug */,
+ 9306820C14911767006F4C6E /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 930681801490D608006F4C6E /* Project object */;
+}
19 BKUIIdiomController/Classes/AppDelegate/AppDelegate.h
@@ -0,0 +1,19 @@
+//
+// AppDelegate.h
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright boreal-kiss.com 2011. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : NSObject <UIApplicationDelegate> {
+ UIWindow *_window;
+ UIViewController *_viewController;
+}
+
+@property (nonatomic, retain) UIWindow *window;
+@property (nonatomic, retain) UIViewController *viewController;
+@end
+
60 BKUIIdiomController/Classes/AppDelegate/AppDelegate.m
@@ -0,0 +1,60 @@
+//
+// AppDelegate.m
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright boreal-kiss.com 2011. All rights reserved.
+//
+
+#import "AppDelegate.h"
+#import "TestVC.h"
+
+//Private.
+@interface AppDelegate ()
+-(NSString *)_viewNibName;
+@end
+
+@implementation AppDelegate
+@synthesize window = _window;
+@synthesize viewController = _viewController;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+
+ _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ _window.backgroundColor = [UIColor whiteColor];
+ _viewController = [[TestVC alloc] initWithNibName:[self _viewNibName] bundle:nil];
+ [_window addSubview:_viewController.view];
+ [_window makeKeyAndVisible];
+
+ return YES;
+}
+
+- (void)applicationWillTerminate:(UIApplication *) application{
+
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *) application{
+
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *) application{
+
+}
+
+- (void)dealloc {
+ self.viewController = nil;
+ self.window = nil;
+ [super dealloc];
+}
+
+#pragma -
+#pragma Private.
+
+-(NSString *)_viewNibName{
+ if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
+ return @"TestVC-iPad";
+ }
+ return @"TestVC";
+}
+
+@end
38 BKUIIdiomController/Classes/BKUIIdiomController/BKUIIdiomController.h
@@ -0,0 +1,38 @@
+//
+// BKUIIdiomController.h
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright (c) 2011 boreal-kiss.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+/**
+ * Controls behaviors depending on a device's idiom (iPhone or iPad).
+ * The device's idiom will be dynamically detected on runtime.
+ */
+@interface BKUIIdiomController : NSObject{
+ NSArray *_blocksForiPhone;
+ NSArray *_blocksForiPad;
+ NSArray *_blocksForCurrentIdiom;
+ BOOL _idiomDetected;
+}
+
+/**
+ * Returns a specified block. Might need cast when executing it.
+ */
+-(void *)blockAtIndex:(NSUInteger)index;
+
+/**
+ * Adds a block for iPhone environment.
+ * Returns the index of the block stored in the receiver.
+ */
+-(NSUInteger)addBlockForiPhone:(id)block;
+
+/**
+ * Adds a block for iPad environment.
+ * Returns the index of the block stored in the receiver.
+ */
+-(NSUInteger)addBlockForiPad:(id)block;
+@end
68 BKUIIdiomController/Classes/BKUIIdiomController/BKUIIdiomController.m
@@ -0,0 +1,68 @@
+//
+// BKUIIdiomController.m
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright (c) 2011 boreal-kiss.com. All rights reserved.
+//
+
+#import "BKUIIdiomController.h"
+
+//Private;
+@interface BKUIIdiomController ()
+@property (nonatomic, retain, readwrite) NSArray *blocksForiPhone;
+@property (nonatomic, retain, readwrite) NSArray *blocksForiPad;
+@property (nonatomic, assign, readwrite) NSArray *blocksForCurrentIdiom;
+@end
+
+@implementation BKUIIdiomController
+@synthesize blocksForiPhone = _blocksForiPhone;
+@synthesize blocksForiPad = _blocksForiPad;
+@synthesize blocksForCurrentIdiom = _blocksForCurrentIdiom;
+
+-(id)init{
+ if ((self = [super init])){
+ self.blocksForiPhone = [NSArray array];
+ self.blocksForiPad = [NSArray array];
+ _idiomDetected = NO;
+ }
+ return self;
+}
+
+-(void *)blockAtIndex:(NSUInteger)index{
+ //Checks the device's idiom only once.
+ if (!_idiomDetected){
+ if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
+ self.blocksForCurrentIdiom = _blocksForiPad;
+ }
+ else{
+ self.blocksForCurrentIdiom = _blocksForiPhone;
+ }
+ _idiomDetected = YES;
+ }
+
+ return [_blocksForCurrentIdiom objectAtIndex:index];
+}
+
+-(NSUInteger)addBlockForiPhone:(id)block{
+ NSMutableArray *array = [NSMutableArray arrayWithArray:_blocksForiPhone];
+ [array addObject:[[block copy] autorelease]];
+ self.blocksForiPhone = array;
+ return ([_blocksForiPhone count] - 1);
+}
+
+-(NSUInteger)addBlockForiPad:(id)block{
+ NSMutableArray *array = [NSMutableArray arrayWithArray:_blocksForiPad];
+ [array addObject:[[block copy] autorelease]];
+ self.blocksForiPad = array;
+ return ([_blocksForiPad count] - 1);
+}
+
+-(void)dealloc{
+ self.blocksForiPhone = nil;
+ self.blocksForiPad = nil;
+ self.blocksForCurrentIdiom = nil;
+ [super dealloc];
+}
+
+@end
251 BKUIIdiomController/Classes/TestVC/Resources/TestVC-iPad.xib
@@ -0,0 +1,251 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1280</int>
+ <string key="IBDocument.SystemVersion">11C74</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1938</string>
+ <string key="IBDocument.AppKitVersion">1138.23</string>
+ <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">933</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBUILabel</string>
+ <string>IBUINavigationItem</string>
+ <string>IBUIBarButtonItem</string>
+ <string>IBUIView</string>
+ <string>IBUINavigationBar</string>
+ <string>IBProxyObject</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUINavigationBar" id="444813408">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrameSize">{768, 44}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="252822880"/>
+ <string key="NSReuseIdentifierKey">_NS:276</string>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <array key="IBUIItems">
+ <object class="IBUINavigationItem" id="616371412">
+ <reference key="IBUINavigationBar" ref="444813408"/>
+ <string key="IBUITitle"/>
+ <object class="IBUIBarButtonItem" key="IBUIRightBarButtonItem" id="967593687">
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <int key="IBUIStyle">1</int>
+ <reference key="IBUINavigationItem" ref="616371412"/>
+ <int key="IBUISystemItemIdentifier">9</int>
+ </object>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ </array>
+ </object>
+ <object class="IBUILabel" id="252822880">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">319</int>
+ <string key="NSFrameSize">{768, 1024}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:345</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <string key="IBUIText">TestVC</string>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">1</int>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">1</int>
+ <double key="pointSize">17</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">17</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ </array>
+ <string key="NSFrameSize">{768, 1024}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="444813408"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">5</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">_showButtonItem</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="967593687"/>
+ </object>
+ <int key="connectionID">8</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">buttonPressed:</string>
+ <reference key="source" ref="967593687"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">9</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="444813408"/>
+ <reference ref="252822880"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="444813408"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="616371412"/>
+ </array>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="616371412"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="967593687"/>
+ </array>
+ <reference key="parent" ref="444813408"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="967593687"/>
+ <reference key="parent" ref="616371412"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">10</int>
+ <reference key="object" ref="252822880"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">TestVC</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="10.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="3.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">10</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">TestVC</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">buttonPressed:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">buttonPressed:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">buttonPressed:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">_showButtonItem</string>
+ <string key="NS.object.0">UIBarButtonItem</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">_showButtonItem</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">_showButtonItem</string>
+ <string key="candidateClassName">UIBarButtonItem</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/TestVC.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">933</string>
+ </data>
+</archive>
294 BKUIIdiomController/Classes/TestVC/Resources/TestVC.xib
@@ -0,0 +1,294 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
+ <data>
+ <int key="IBDocument.SystemTarget">1280</int>
+ <string key="IBDocument.SystemVersion">11C74</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1938</string>
+ <string key="IBDocument.AppKitVersion">1138.23</string>
+ <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">933</string>
+ </object>
+ <object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>IBUILabel</string>
+ <string>IBUINavigationItem</string>
+ <string>IBUIBarButtonItem</string>
+ <string>IBUIView</string>
+ <string>IBUINavigationBar</string>
+ <string>IBProxyObject</string>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBUINavigationBar" id="87120244">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrameSize">{320, 44}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSArray" key="IBUIItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBUINavigationItem" id="716899895">
+ <reference key="IBUINavigationBar" ref="87120244"/>
+ <string key="IBUITitle"/>
+ <object class="IBUIBarButtonItem" key="IBUIRightBarButtonItem" id="408371592">
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIStyle">1</int>
+ <reference key="IBUINavigationItem" ref="716899895"/>
+ <int key="IBUISystemItemIdentifier">9</int>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </object>
+ </object>
+ <object class="IBUILabel" id="89612190">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrameSize">{320, 480}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <string key="NSReuseIdentifierKey">_NS:328</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">TestVC</string>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">1</int>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">1</int>
+ <double key="pointSize">17</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">17</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ </object>
+ <string key="NSFrameSize">{320, 480}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="87120244"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">_showButtonItem</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="408371592"/>
+ </object>
+ <int key="connectionID">8</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">buttonPressed:</string>
+ <reference key="source" ref="408371592"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">9</int>
+ </object>
+ </object>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <object class="NSArray" key="orderedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <object class="NSArray" key="object" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="87120244"/>
+ <reference ref="89612190"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="87120244"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="716899895"/>
+ </object>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="716899895"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="408371592"/>
+ </object>
+ <reference key="parent" ref="87120244"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="408371592"/>
+ <reference key="parent" ref="716899895"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">10</int>
+ <reference key="object" ref="89612190"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="flattenedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.CustomClassName</string>
+ <string>-1.IBPluginDependency</string>
+ <string>-2.CustomClassName</string>
+ <string>-2.IBPluginDependency</string>
+ <string>1.IBPluginDependency</string>
+ <string>10.IBPluginDependency</string>
+ <string>4.IBPluginDependency</string>
+ <string>5.IBPluginDependency</string>
+ <string>6.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>TestVC</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>UIResponder</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="unlocalizedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <nil key="activeLocalization"/>
+ <object class="NSMutableDictionary" key="localizations">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <nil key="sourceID"/>
+ <int key="maxID">10</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">TestVC</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">buttonPressed:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">buttonPressed:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">buttonPressed:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">_showButtonItem</string>
+ <string key="NS.object.0">UIBarButtonItem</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">_showButtonItem</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">_showButtonItem</string>
+ <string key="candidateClassName">UIBarButtonItem</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/TestVC.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1280" key="NS.object.0"/>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+ <integer value="3000" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">933</string>
+ </data>
+</archive>
24 BKUIIdiomController/Classes/TestVC/TestVC.h
@@ -0,0 +1,24 @@
+//
+// TestVC.h
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright boreal-kiss.com 2011. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class BKUIIdiomController;
+
+@interface TestVC : UIViewController {
+ BKUIIdiomController *_idiomController;
+
+ UIPopoverController *_popover;
+ IBOutlet UIBarButtonItem *_showButtonItem;
+}
+@property (nonatomic, retain, readwrite) BKUIIdiomController *idiomController;
+@property (nonatomic, retain, readwrite) UIPopoverController *popover;
+@property (nonatomic, assign, readwrite) UIBarButtonItem *showButtonItem;
+
+-(IBAction)buttonPressed:(id)sender;
+@end
99 BKUIIdiomController/Classes/TestVC/TestVC.m
@@ -0,0 +1,99 @@
+//
+// TestVC.m
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright boreal-kiss.com 2011. All rights reserved.
+//
+
+#import "TestVC.h"
+#import "BKUIIdiomController.h"
+#import "TestVC2.h"
+
+//Private.
+@interface TestVC ()
+-(void)_setupViewRotation;
+-(void)_setupModalView;
+@end
+
+@implementation TestVC
+@synthesize idiomController = _idiomController;
+@synthesize popover = _popover;
+@synthesize showButtonItem = _showButtonItem;
+
+- (void)viewDidLoad {
+ self.idiomController = [[[BKUIIdiomController alloc] init] autorelease];
+
+ //Index 0.
+ [self _setupViewRotation];
+
+ //Index 1.
+ [self _setupModalView];
+}
+
+-(IBAction)buttonPressed:(id)sender{
+ void (^block)(id snd) = [_idiomController blockAtIndex:1];
+ block(sender);
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
+ BOOL (^block)(UIInterfaceOrientation) = [_idiomController blockAtIndex:0];
+ return block(interfaceOrientation);
+}
+
+- (void)dealloc {
+ self.idiomController = nil;
+ self.popover = nil;
+ self.showButtonItem = nil;
+ [super dealloc];
+}
+
+#pragma -
+#pragma Private.
+
+-(void)_setupViewRotation{
+ //iPhone.
+ BOOL (^blockiPhone)(UIInterfaceOrientation orientation) = ^(UIInterfaceOrientation orientation){
+ if (orientation == UIInterfaceOrientationPortrait){
+ return YES;
+ }
+ return NO;
+ };
+
+ [_idiomController addBlockForiPhone:blockiPhone];
+
+ //iPad.
+ BOOL (^blockiPad)(UIInterfaceOrientation orientation) = ^(UIInterfaceOrientation orientation){
+ return YES;
+ };
+
+ [_idiomController addBlockForiPad:blockiPad];
+}
+
+-(void)_setupModalView{
+ UIViewController *vc = [[[TestVC2 alloc] init] autorelease];
+
+ //iPhone.
+ void (^blockiPhone)(id sender) = ^(id sender){
+ UINavigationController *nc = [[[UINavigationController alloc] initWithRootViewController:vc] autorelease];
+ [self presentModalViewController:nc animated:YES];
+ };
+
+ [_idiomController addBlockForiPhone:blockiPhone];
+
+ //iPad.
+ void (^blockiPad)(id sender) = ^(id sender){
+ if (_popover){
+ [_popover dismissPopoverAnimated:YES];
+ }
+
+ self.popover = [[[UIPopoverController alloc] initWithContentViewController:vc] autorelease];
+ [_popover setPopoverContentSize:vc.view.frame.size];
+ UIBarButtonItem *barButtonItem = (UIBarButtonItem *)sender;
+ [_popover presentPopoverFromBarButtonItem:barButtonItem permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
+ };
+
+ [_idiomController addBlockForiPad:blockiPad];
+}
+
+@end
162 BKUIIdiomController/Classes/TestVC2/Resources/TestVC2.xib
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1280</int>
+ <string key="IBDocument.SystemVersion">11C74</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1938</string>
+ <string key="IBDocument.AppKitVersion">1138.23</string>
+ <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">933</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ <string>IBUILabel</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUILabel" id="820908605">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrameSize">{320, 480}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:328</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">TestVC2</string>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">1</int>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">1</int>
+ <double key="pointSize">17</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">17</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ </array>
+ <string key="NSFrameSize">{320, 480}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="820908605"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">4</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="820908605"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="820908605"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">TestVC2</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="3.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">4</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">TestVC2</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/TestVC2.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">933</string>
+ </data>
+</archive>
19 BKUIIdiomController/Classes/TestVC2/TestVC2.h
@@ -0,0 +1,19 @@
+//
+// TestVC2.h
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright (c) 2011 boreal-kiss.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+/**
+ * A modal view controller.
+ */
+@interface TestVC2 : UIViewController{
+
+}
+
+-(void)doneButtonPressed:(id)sender;
+@end
27 BKUIIdiomController/Classes/TestVC2/TestVC2.m
@@ -0,0 +1,27 @@
+//
+// TestVC2.m
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright (c) 2011 boreal-kiss.com. All rights reserved.
+//
+
+#import "TestVC2.h"
+#import "BKUIIdiomController.h"
+
+@implementation TestVC2
+
+-(void)viewDidLoad{
+ if (self.navigationController){
+ self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
+ target:self
+ action:@selector(doneButtonPressed:)] autorelease];
+ }
+}
+
+-(void)doneButtonPressed:(id)sender{
+ [self dismissModalViewControllerAnimated:YES];
+}
+
+
+@end
34 BKUIIdiomController/Info.plist
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.borealkiss.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIStatusBarHidden</key>
+ <true/>
+ <key>UIPrerenderedIcon</key>
+ <true/>
+ <key>UIApplicationExitsOnSuspend</key>
+ <true/>
+</dict>
+</plist>
14 BKUIIdiomController/Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'BKUIIdiomController' target in the 'BKUIIdiomController' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_3_0
+#warning "This project uses features only available in iPhone SDK 3.0 and later."
+#endif
+
+#ifdef __OBJC__
+#import <UIKit/UIKit.h>
+#import <Foundation/Foundation.h>
+#endif
17 BKUIIdiomController/main.m
@@ -0,0 +1,17 @@
+//
+// main.m
+// BKUIIdiomController
+//
+// Created by Hajime Hikida on 12/8/11.
+// Copyright boreal-kiss.com 2011. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+int main(int argc, char *argv[]) {
+
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+ int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
+ [pool release];
+ return retVal;
+}
7 LICENSE.txt
@@ -0,0 +1,7 @@
+Copyright (c) 2011 boreal-kiss.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12 README.textile
@@ -0,0 +1,12 @@
+h1. BKUIIdiomController
+
+Controls behaviors depending on a device's idiom (iPhone or iPad) without having annoying conditionals (i.e., if (UI_USER_INTERFACE_IDIOM() ==)). The device's idiom will be dynamically detected on runtime and perform appropriate methods, thanks to "State pattern":http://en.wikipedia.org/wiki/State_pattern.
+
+h2. Contact
+
+* "http://blog.boreal-kiss.net/":http://blog.boreal-kiss.net/
+* "http://twitter.com/borealkiss":http://twitter.com/borealkiss
+
+h2. License
+
+BKUIIdiomController is provided under the terms of "MIT license":http://www.opensource.org/licenses/mit-license.php.
Please sign in to comment.
Something went wrong with that request. Please try again.