diff options
| author | mo khan <mo@mokhan.ca> | 2013-05-21 20:24:46 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-05-21 20:24:46 -0600 |
| commit | 1573781ec787a25bc9675fea9f1d98af8f53525e (patch) | |
| tree | 2c501bcad0eb03d747983a39d39430d3833a71f4 | |
| parent | aab3efb23854c80ee230bb8e3d3e957c3d05cc7f (diff) | |
complete the tab bar example
69 files changed, 3215 insertions, 0 deletions
diff --git a/AlertActionSheets/AlertActionSheets.xcodeproj/project.pbxproj b/AlertActionSheets/AlertActionSheets.xcodeproj/project.pbxproj new file mode 100644 index 0000000..dc70808 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets.xcodeproj/project.pbxproj @@ -0,0 +1,305 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + CDE0C252174C4707009ED558 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C251174C4707009ED558 /* UIKit.framework */; }; + CDE0C254174C4707009ED558 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C253174C4707009ED558 /* Foundation.framework */; }; + CDE0C256174C4707009ED558 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C255174C4707009ED558 /* CoreGraphics.framework */; }; + CDE0C25C174C4707009ED558 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C25A174C4707009ED558 /* InfoPlist.strings */; }; + CDE0C25E174C4707009ED558 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C25D174C4707009ED558 /* main.m */; }; + CDE0C262174C4707009ED558 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C261174C4707009ED558 /* AppDelegate.m */; }; + CDE0C264174C4707009ED558 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C263174C4707009ED558 /* Default.png */; }; + CDE0C266174C4707009ED558 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C265174C4707009ED558 /* Default@2x.png */; }; + CDE0C268174C4707009ED558 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C267174C4707009ED558 /* Default-568h@2x.png */; }; + CDE0C26B174C4707009ED558 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C26A174C4707009ED558 /* ViewController.m */; }; + CDE0C26E174C4707009ED558 /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C26C174C4707009ED558 /* ViewController.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + CDE0C24E174C4707009ED558 /* AlertActionSheets.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AlertActionSheets.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CDE0C251174C4707009ED558 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + CDE0C253174C4707009ED558 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + CDE0C255174C4707009ED558 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + CDE0C259174C4707009ED558 /* AlertActionSheets-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "AlertActionSheets-Info.plist"; sourceTree = "<group>"; }; + CDE0C25B174C4707009ED558 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; + CDE0C25D174C4707009ED558 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; + CDE0C25F174C4707009ED558 /* AlertActionSheets-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AlertActionSheets-Prefix.pch"; sourceTree = "<group>"; }; + CDE0C260174C4707009ED558 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; + CDE0C261174C4707009ED558 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; + CDE0C263174C4707009ED558 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; + CDE0C265174C4707009ED558 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; }; + CDE0C267174C4707009ED558 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; }; + CDE0C269174C4707009ED558 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; }; + CDE0C26A174C4707009ED558 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; + CDE0C26D174C4707009ED558 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CDE0C24B174C4707009ED558 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C252174C4707009ED558 /* UIKit.framework in Frameworks */, + CDE0C254174C4707009ED558 /* Foundation.framework in Frameworks */, + CDE0C256174C4707009ED558 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CDE0C245174C4707009ED558 = { + isa = PBXGroup; + children = ( + CDE0C257174C4707009ED558 /* AlertActionSheets */, + CDE0C250174C4707009ED558 /* Frameworks */, + CDE0C24F174C4707009ED558 /* Products */, + ); + sourceTree = "<group>"; + }; + CDE0C24F174C4707009ED558 /* Products */ = { + isa = PBXGroup; + children = ( + CDE0C24E174C4707009ED558 /* AlertActionSheets.app */, + ); + name = Products; + sourceTree = "<group>"; + }; + CDE0C250174C4707009ED558 /* Frameworks */ = { + isa = PBXGroup; + children = ( + CDE0C251174C4707009ED558 /* UIKit.framework */, + CDE0C253174C4707009ED558 /* Foundation.framework */, + CDE0C255174C4707009ED558 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = "<group>"; + }; + CDE0C257174C4707009ED558 /* AlertActionSheets */ = { + isa = PBXGroup; + children = ( + CDE0C260174C4707009ED558 /* AppDelegate.h */, + CDE0C261174C4707009ED558 /* AppDelegate.m */, + CDE0C269174C4707009ED558 /* ViewController.h */, + CDE0C26A174C4707009ED558 /* ViewController.m */, + CDE0C26C174C4707009ED558 /* ViewController.xib */, + CDE0C258174C4707009ED558 /* Supporting Files */, + ); + path = AlertActionSheets; + sourceTree = "<group>"; + }; + CDE0C258174C4707009ED558 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + CDE0C259174C4707009ED558 /* AlertActionSheets-Info.plist */, + CDE0C25A174C4707009ED558 /* InfoPlist.strings */, + CDE0C25D174C4707009ED558 /* main.m */, + CDE0C25F174C4707009ED558 /* AlertActionSheets-Prefix.pch */, + CDE0C263174C4707009ED558 /* Default.png */, + CDE0C265174C4707009ED558 /* Default@2x.png */, + CDE0C267174C4707009ED558 /* Default-568h@2x.png */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CDE0C24D174C4707009ED558 /* AlertActionSheets */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDE0C271174C4707009ED558 /* Build configuration list for PBXNativeTarget "AlertActionSheets" */; + buildPhases = ( + CDE0C24A174C4707009ED558 /* Sources */, + CDE0C24B174C4707009ED558 /* Frameworks */, + CDE0C24C174C4707009ED558 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = AlertActionSheets; + productName = AlertActionSheets; + productReference = CDE0C24E174C4707009ED558 /* AlertActionSheets.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CDE0C246174C4707009ED558 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = "mo khan"; + }; + buildConfigurationList = CDE0C249174C4707009ED558 /* Build configuration list for PBXProject "AlertActionSheets" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = CDE0C245174C4707009ED558; + productRefGroup = CDE0C24F174C4707009ED558 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CDE0C24D174C4707009ED558 /* AlertActionSheets */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CDE0C24C174C4707009ED558 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C25C174C4707009ED558 /* InfoPlist.strings in Resources */, + CDE0C264174C4707009ED558 /* Default.png in Resources */, + CDE0C266174C4707009ED558 /* Default@2x.png in Resources */, + CDE0C268174C4707009ED558 /* Default-568h@2x.png in Resources */, + CDE0C26E174C4707009ED558 /* ViewController.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CDE0C24A174C4707009ED558 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C25E174C4707009ED558 /* main.m in Sources */, + CDE0C262174C4707009ED558 /* AppDelegate.m in Sources */, + CDE0C26B174C4707009ED558 /* ViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + CDE0C25A174C4707009ED558 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + CDE0C25B174C4707009ED558 /* en */, + ); + name = InfoPlist.strings; + sourceTree = "<group>"; + }; + CDE0C26C174C4707009ED558 /* ViewController.xib */ = { + isa = PBXVariantGroup; + children = ( + CDE0C26D174C4707009ED558 /* en */, + ); + name = ViewController.xib; + sourceTree = "<group>"; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CDE0C26F174C4707009ED558 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + CDE0C270174C4707009ED558 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CDE0C272174C4707009ED558 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AlertActionSheets/AlertActionSheets-Prefix.pch"; + INFOPLIST_FILE = "AlertActionSheets/AlertActionSheets-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + CDE0C273174C4707009ED558 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "AlertActionSheets/AlertActionSheets-Prefix.pch"; + INFOPLIST_FILE = "AlertActionSheets/AlertActionSheets-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CDE0C249174C4707009ED558 /* Build configuration list for PBXProject "AlertActionSheets" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDE0C26F174C4707009ED558 /* Debug */, + CDE0C270174C4707009ED558 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDE0C271174C4707009ED558 /* Build configuration list for PBXNativeTarget "AlertActionSheets" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDE0C272174C4707009ED558 /* Debug */, + CDE0C273174C4707009ED558 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = CDE0C246174C4707009ED558 /* Project object */; +} diff --git a/AlertActionSheets/AlertActionSheets/AlertActionSheets-Info.plist b/AlertActionSheets/AlertActionSheets/AlertActionSheets-Info.plist new file mode 100644 index 0000000..72d55a8 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/AlertActionSheets-Info.plist @@ -0,0 +1,38 @@ +<?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>en</string> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>mokhan.ca.${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>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>UIRequiredDeviceCapabilities</key> + <array> + <string>armv7</string> + </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> diff --git a/AlertActionSheets/AlertActionSheets/AlertActionSheets-Prefix.pch b/AlertActionSheets/AlertActionSheets/AlertActionSheets-Prefix.pch new file mode 100644 index 0000000..7e1ef06 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/AlertActionSheets-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'AlertActionSheets' target in the 'AlertActionSheets' project +// + +#import <Availability.h> + +#ifndef __IPHONE_4_0 +#warning "This project uses features only available in iOS SDK 4.0 and later." +#endif + +#ifdef __OBJC__ + #import <UIKit/UIKit.h> + #import <Foundation/Foundation.h> +#endif diff --git a/AlertActionSheets/AlertActionSheets/AppDelegate.h b/AlertActionSheets/AlertActionSheets/AppDelegate.h new file mode 100644 index 0000000..3d8ecf9 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/AppDelegate.h @@ -0,0 +1,19 @@ +// +// AppDelegate.h +// AlertActionSheets +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@class ViewController; + +@interface AppDelegate : UIResponder <UIApplicationDelegate> + +@property (strong, nonatomic) UIWindow *window; + +@property (strong, nonatomic) ViewController *viewController; + +@end diff --git a/AlertActionSheets/AlertActionSheets/AppDelegate.m b/AlertActionSheets/AlertActionSheets/AppDelegate.m new file mode 100644 index 0000000..a164def --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/AppDelegate.m @@ -0,0 +1,52 @@ +// +// AppDelegate.m +// AlertActionSheets +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "AppDelegate.h" + +#import "ViewController.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; + self.window.rootViewController = self.viewController; + [self.window makeKeyAndVisible]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/AlertActionSheets/AlertActionSheets/Default-568h@2x.png b/AlertActionSheets/AlertActionSheets/Default-568h@2x.png Binary files differnew file mode 100644 index 0000000..0891b7a --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/Default-568h@2x.png diff --git a/AlertActionSheets/AlertActionSheets/Default.png b/AlertActionSheets/AlertActionSheets/Default.png Binary files differnew file mode 100644 index 0000000..4c8ca6f --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/Default.png diff --git a/AlertActionSheets/AlertActionSheets/Default@2x.png b/AlertActionSheets/AlertActionSheets/Default@2x.png Binary files differnew file mode 100644 index 0000000..35b84cf --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/Default@2x.png diff --git a/AlertActionSheets/AlertActionSheets/ViewController.h b/AlertActionSheets/AlertActionSheets/ViewController.h new file mode 100644 index 0000000..ca02840 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/ViewController.h @@ -0,0 +1,13 @@ +// +// ViewController.h +// AlertActionSheets +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface ViewController : UIViewController + +@end diff --git a/AlertActionSheets/AlertActionSheets/ViewController.m b/AlertActionSheets/AlertActionSheets/ViewController.m new file mode 100644 index 0000000..e4485d6 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/ViewController.m @@ -0,0 +1,29 @@ +// +// ViewController.m +// AlertActionSheets +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/AlertActionSheets/AlertActionSheets/en.lproj/InfoPlist.strings b/AlertActionSheets/AlertActionSheets/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/AlertActionSheets/AlertActionSheets/en.lproj/ViewController.xib b/AlertActionSheets/AlertActionSheets/en.lproj/ViewController.xib new file mode 100644 index 0000000..18825b5 --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/en.lproj/ViewController.xib @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1536</int> + <string key="IBDocument.SystemVersion">12A269</string> + <string key="IBDocument.InterfaceBuilderVersion">2835</string> + <string key="IBDocument.AppKitVersion">1187</string> + <string key="IBDocument.HIToolboxVersion">624.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">1919</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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="843779117"> + <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> + </object> + <object class="IBUIView" id="774585933"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">274</int> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC43NQA</bytes> + <object class="NSColorSpace" key="NSCustomColorSpace"> + <int key="NSID">2</int> + </object> + </object> + <bool key="IBUIClearsContextBeforeDrawing">NO</bool> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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="774585933"/> + </object> + <int key="connectionID">7</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="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="843779117"/> + <reference key="parent" ref="0"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">6</int> + <reference key="object" ref="774585933"/> + <reference key="parent" ref="0"/> + </object> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">ViewController</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="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">7</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">ViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/ViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">1919</string> + </data> +</archive> diff --git a/AlertActionSheets/AlertActionSheets/main.m b/AlertActionSheets/AlertActionSheets/main.m new file mode 100644 index 0000000..d04b79d --- /dev/null +++ b/AlertActionSheets/AlertActionSheets/main.m @@ -0,0 +1,18 @@ +// +// main.m +// AlertActionSheets +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/Controls/Controls.xcodeproj/project.pbxproj b/Controls/Controls.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3863455 --- /dev/null +++ b/Controls/Controls.xcodeproj/project.pbxproj @@ -0,0 +1,305 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + CDD4CA6B174321A70096B316 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDD4CA6A174321A70096B316 /* UIKit.framework */; }; + CDD4CA6D174321A70096B316 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDD4CA6C174321A70096B316 /* Foundation.framework */; }; + CDD4CA6F174321A70096B316 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDD4CA6E174321A70096B316 /* CoreGraphics.framework */; }; + CDD4CA75174321A70096B316 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CDD4CA73174321A70096B316 /* InfoPlist.strings */; }; + CDD4CA77174321A70096B316 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDD4CA76174321A70096B316 /* main.m */; }; + CDD4CA7B174321A70096B316 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CDD4CA7A174321A70096B316 /* AppDelegate.m */; }; + CDD4CA7D174321A70096B316 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CDD4CA7C174321A70096B316 /* Default.png */; }; + CDD4CA7F174321A70096B316 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDD4CA7E174321A70096B316 /* Default@2x.png */; }; + CDD4CA81174321A70096B316 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDD4CA80174321A70096B316 /* Default-568h@2x.png */; }; + CDD4CA84174321A70096B316 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDD4CA83174321A70096B316 /* ViewController.m */; }; + CDD4CA87174321A70096B316 /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDD4CA85174321A70096B316 /* ViewController.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + CDD4CA67174321A70096B316 /* Controls.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Controls.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CDD4CA6A174321A70096B316 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + CDD4CA6C174321A70096B316 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + CDD4CA6E174321A70096B316 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + CDD4CA72174321A70096B316 /* Controls-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Controls-Info.plist"; sourceTree = "<group>"; }; + CDD4CA74174321A70096B316 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; + CDD4CA76174321A70096B316 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; + CDD4CA78174321A70096B316 /* Controls-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Controls-Prefix.pch"; sourceTree = "<group>"; }; + CDD4CA79174321A70096B316 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; + CDD4CA7A174321A70096B316 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; + CDD4CA7C174321A70096B316 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; + CDD4CA7E174321A70096B316 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; }; + CDD4CA80174321A70096B316 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; }; + CDD4CA82174321A70096B316 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; }; + CDD4CA83174321A70096B316 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; + CDD4CA86174321A70096B316 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CDD4CA64174321A70096B316 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CDD4CA6B174321A70096B316 /* UIKit.framework in Frameworks */, + CDD4CA6D174321A70096B316 /* Foundation.framework in Frameworks */, + CDD4CA6F174321A70096B316 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CDD4CA5E174321A70096B316 = { + isa = PBXGroup; + children = ( + CDD4CA70174321A70096B316 /* Controls */, + CDD4CA69174321A70096B316 /* Frameworks */, + CDD4CA68174321A70096B316 /* Products */, + ); + sourceTree = "<group>"; + }; + CDD4CA68174321A70096B316 /* Products */ = { + isa = PBXGroup; + children = ( + CDD4CA67174321A70096B316 /* Controls.app */, + ); + name = Products; + sourceTree = "<group>"; + }; + CDD4CA69174321A70096B316 /* Frameworks */ = { + isa = PBXGroup; + children = ( + CDD4CA6A174321A70096B316 /* UIKit.framework */, + CDD4CA6C174321A70096B316 /* Foundation.framework */, + CDD4CA6E174321A70096B316 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = "<group>"; + }; + CDD4CA70174321A70096B316 /* Controls */ = { + isa = PBXGroup; + children = ( + CDD4CA79174321A70096B316 /* AppDelegate.h */, + CDD4CA7A174321A70096B316 /* AppDelegate.m */, + CDD4CA82174321A70096B316 /* ViewController.h */, + CDD4CA83174321A70096B316 /* ViewController.m */, + CDD4CA85174321A70096B316 /* ViewController.xib */, + CDD4CA71174321A70096B316 /* Supporting Files */, + ); + path = Controls; + sourceTree = "<group>"; + }; + CDD4CA71174321A70096B316 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + CDD4CA72174321A70096B316 /* Controls-Info.plist */, + CDD4CA73174321A70096B316 /* InfoPlist.strings */, + CDD4CA76174321A70096B316 /* main.m */, + CDD4CA78174321A70096B316 /* Controls-Prefix.pch */, + CDD4CA7C174321A70096B316 /* Default.png */, + CDD4CA7E174321A70096B316 /* Default@2x.png */, + CDD4CA80174321A70096B316 /* Default-568h@2x.png */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CDD4CA66174321A70096B316 /* Controls */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDD4CA8A174321A70096B316 /* Build configuration list for PBXNativeTarget "Controls" */; + buildPhases = ( + CDD4CA63174321A70096B316 /* Sources */, + CDD4CA64174321A70096B316 /* Frameworks */, + CDD4CA65174321A70096B316 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Controls; + productName = Controls; + productReference = CDD4CA67174321A70096B316 /* Controls.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CDD4CA5F174321A70096B316 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = "mo khan"; + }; + buildConfigurationList = CDD4CA62174321A70096B316 /* Build configuration list for PBXProject "Controls" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = CDD4CA5E174321A70096B316; + productRefGroup = CDD4CA68174321A70096B316 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CDD4CA66174321A70096B316 /* Controls */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CDD4CA65174321A70096B316 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDD4CA75174321A70096B316 /* InfoPlist.strings in Resources */, + CDD4CA7D174321A70096B316 /* Default.png in Resources */, + CDD4CA7F174321A70096B316 /* Default@2x.png in Resources */, + CDD4CA81174321A70096B316 /* Default-568h@2x.png in Resources */, + CDD4CA87174321A70096B316 /* ViewController.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CDD4CA63174321A70096B316 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDD4CA77174321A70096B316 /* main.m in Sources */, + CDD4CA7B174321A70096B316 /* AppDelegate.m in Sources */, + CDD4CA84174321A70096B316 /* ViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + CDD4CA73174321A70096B316 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + CDD4CA74174321A70096B316 /* en */, + ); + name = InfoPlist.strings; + sourceTree = "<group>"; + }; + CDD4CA85174321A70096B316 /* ViewController.xib */ = { + isa = PBXVariantGroup; + children = ( + CDD4CA86174321A70096B316 /* en */, + ); + name = ViewController.xib; + sourceTree = "<group>"; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CDD4CA88174321A70096B316 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + CDD4CA89174321A70096B316 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CDD4CA8B174321A70096B316 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Controls/Controls-Prefix.pch"; + INFOPLIST_FILE = "Controls/Controls-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + CDD4CA8C174321A70096B316 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Controls/Controls-Prefix.pch"; + INFOPLIST_FILE = "Controls/Controls-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CDD4CA62174321A70096B316 /* Build configuration list for PBXProject "Controls" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDD4CA88174321A70096B316 /* Debug */, + CDD4CA89174321A70096B316 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDD4CA8A174321A70096B316 /* Build configuration list for PBXNativeTarget "Controls" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDD4CA8B174321A70096B316 /* Debug */, + CDD4CA8C174321A70096B316 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = CDD4CA5F174321A70096B316 /* Project object */; +} diff --git a/Controls/Controls/AppDelegate.h b/Controls/Controls/AppDelegate.h new file mode 100644 index 0000000..cd411ee --- /dev/null +++ b/Controls/Controls/AppDelegate.h @@ -0,0 +1,19 @@ +// +// AppDelegate.h +// Controls +// +// Created by mo khan on 2013-05-14. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@class ViewController; + +@interface AppDelegate : UIResponder <UIApplicationDelegate> + +@property (strong, nonatomic) UIWindow *window; + +@property (strong, nonatomic) ViewController *viewController; + +@end diff --git a/Controls/Controls/AppDelegate.m b/Controls/Controls/AppDelegate.m new file mode 100644 index 0000000..413d2df --- /dev/null +++ b/Controls/Controls/AppDelegate.m @@ -0,0 +1,52 @@ +// +// AppDelegate.m +// Controls +// +// Created by mo khan on 2013-05-14. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "AppDelegate.h" + +#import "ViewController.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; + self.window.rootViewController = self.viewController; + [self.window makeKeyAndVisible]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Controls/Controls/Controls-Info.plist b/Controls/Controls/Controls-Info.plist new file mode 100644 index 0000000..72d55a8 --- /dev/null +++ b/Controls/Controls/Controls-Info.plist @@ -0,0 +1,38 @@ +<?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>en</string> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>mokhan.ca.${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>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>UIRequiredDeviceCapabilities</key> + <array> + <string>armv7</string> + </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> diff --git a/Controls/Controls/Controls-Prefix.pch b/Controls/Controls/Controls-Prefix.pch new file mode 100644 index 0000000..dd94ed4 --- /dev/null +++ b/Controls/Controls/Controls-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'Controls' target in the 'Controls' project +// + +#import <Availability.h> + +#ifndef __IPHONE_4_0 +#warning "This project uses features only available in iOS SDK 4.0 and later." +#endif + +#ifdef __OBJC__ + #import <UIKit/UIKit.h> + #import <Foundation/Foundation.h> +#endif diff --git a/Controls/Controls/Default-568h@2x.png b/Controls/Controls/Default-568h@2x.png Binary files differnew file mode 100644 index 0000000..0891b7a --- /dev/null +++ b/Controls/Controls/Default-568h@2x.png diff --git a/Controls/Controls/Default.png b/Controls/Controls/Default.png Binary files differnew file mode 100644 index 0000000..4c8ca6f --- /dev/null +++ b/Controls/Controls/Default.png diff --git a/Controls/Controls/Default@2x.png b/Controls/Controls/Default@2x.png Binary files differnew file mode 100644 index 0000000..35b84cf --- /dev/null +++ b/Controls/Controls/Default@2x.png diff --git a/Controls/Controls/ViewController.h b/Controls/Controls/ViewController.h new file mode 100644 index 0000000..06aa70b --- /dev/null +++ b/Controls/Controls/ViewController.h @@ -0,0 +1,13 @@ +// +// ViewController.h +// Controls +// +// Created by mo khan on 2013-05-14. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface ViewController : UIViewController + +@end diff --git a/Controls/Controls/ViewController.m b/Controls/Controls/ViewController.m new file mode 100644 index 0000000..b1034f0 --- /dev/null +++ b/Controls/Controls/ViewController.m @@ -0,0 +1,29 @@ +// +// ViewController.m +// Controls +// +// Created by mo khan on 2013-05-14. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Controls/Controls/en.lproj/InfoPlist.strings b/Controls/Controls/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Controls/Controls/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Controls/Controls/en.lproj/ViewController.xib b/Controls/Controls/en.lproj/ViewController.xib new file mode 100644 index 0000000..18825b5 --- /dev/null +++ b/Controls/Controls/en.lproj/ViewController.xib @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1536</int> + <string key="IBDocument.SystemVersion">12A269</string> + <string key="IBDocument.InterfaceBuilderVersion">2835</string> + <string key="IBDocument.AppKitVersion">1187</string> + <string key="IBDocument.HIToolboxVersion">624.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">1919</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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="843779117"> + <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> + <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string> + </object> + <object class="IBUIView" id="774585933"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">274</int> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC43NQA</bytes> + <object class="NSColorSpace" key="NSCustomColorSpace"> + <int key="NSID">2</int> + </object> + </object> + <bool key="IBUIClearsContextBeforeDrawing">NO</bool> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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="774585933"/> + </object> + <int key="connectionID">7</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="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="843779117"/> + <reference key="parent" ref="0"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">6</int> + <reference key="object" ref="774585933"/> + <reference key="parent" ref="0"/> + </object> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">ViewController</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="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">7</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">ViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/ViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">1919</string> + </data> +</archive> diff --git a/Controls/Controls/main.m b/Controls/Controls/main.m new file mode 100644 index 0000000..7dee76d --- /dev/null +++ b/Controls/Controls/main.m @@ -0,0 +1,18 @@ +// +// main.m +// Controls +// +// Created by mo khan on 2013-05-14. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/MultiViewXIBNav/FirstViewController.h b/MultiViewXIBNav/FirstViewController.h new file mode 100644 index 0000000..9524f6a --- /dev/null +++ b/MultiViewXIBNav/FirstViewController.h @@ -0,0 +1,13 @@ +// +// FirstViewController.h +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface FirstViewController : UIViewController + +@end diff --git a/MultiViewXIBNav/FirstViewController.m b/MultiViewXIBNav/FirstViewController.m new file mode 100644 index 0000000..db62c08 --- /dev/null +++ b/MultiViewXIBNav/FirstViewController.m @@ -0,0 +1,38 @@ +// +// FirstViewController.m +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "FirstViewController.h" + +@interface FirstViewController () + +@end + +@implementation FirstViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/MultiViewXIBNav/FirstViewController.xib b/MultiViewXIBNav/FirstViewController.xib new file mode 100644 index 0000000..fdb3f1e --- /dev/null +++ b/MultiViewXIBNav/FirstViewController.xib @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1536</int> + <string key="IBDocument.SystemVersion">12A269</string> + <string key="IBDocument.InterfaceBuilderVersion">2835</string> + <string key="IBDocument.AppKitVersion">1187</string> + <string key="IBDocument.HIToolboxVersion">624.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">1919</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView"/> + <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> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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">3</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"/> + <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> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">FirstViewController</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> + </dictionary> + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> + <nil key="activeLocalization"/> + <dictionary class="NSMutableDictionary" key="localizations"/> + <nil key="sourceID"/> + <int key="maxID">3</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">FirstViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/FirstViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">1919</string> + </data> +</archive> diff --git a/MultiViewXIBNav/MultiViewXIBNav.xcodeproj/project.pbxproj b/MultiViewXIBNav/MultiViewXIBNav.xcodeproj/project.pbxproj new file mode 100644 index 0000000..e0f9cea --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav.xcodeproj/project.pbxproj @@ -0,0 +1,287 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + CDE0C281174C4C0F009ED558 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C280174C4C0F009ED558 /* UIKit.framework */; }; + CDE0C283174C4C0F009ED558 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C282174C4C0F009ED558 /* Foundation.framework */; }; + CDE0C285174C4C0F009ED558 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C284174C4C0F009ED558 /* CoreGraphics.framework */; }; + CDE0C28B174C4C0F009ED558 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C289174C4C0F009ED558 /* InfoPlist.strings */; }; + CDE0C28D174C4C0F009ED558 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C28C174C4C0F009ED558 /* main.m */; }; + CDE0C291174C4C0F009ED558 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C290174C4C0F009ED558 /* AppDelegate.m */; }; + CDE0C293174C4C0F009ED558 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C292174C4C0F009ED558 /* Default.png */; }; + CDE0C295174C4C0F009ED558 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C294174C4C0F009ED558 /* Default@2x.png */; }; + CDE0C297174C4C0F009ED558 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C296174C4C0F009ED558 /* Default-568h@2x.png */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + CDE0C27D174C4C0F009ED558 /* MultiViewXIBNav.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MultiViewXIBNav.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CDE0C280174C4C0F009ED558 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + CDE0C282174C4C0F009ED558 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + CDE0C284174C4C0F009ED558 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + CDE0C288174C4C0F009ED558 /* MultiViewXIBNav-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MultiViewXIBNav-Info.plist"; sourceTree = "<group>"; }; + CDE0C28A174C4C0F009ED558 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; + CDE0C28C174C4C0F009ED558 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; + CDE0C28E174C4C0F009ED558 /* MultiViewXIBNav-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MultiViewXIBNav-Prefix.pch"; sourceTree = "<group>"; }; + CDE0C28F174C4C0F009ED558 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; + CDE0C290174C4C0F009ED558 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; + CDE0C292174C4C0F009ED558 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; + CDE0C294174C4C0F009ED558 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; }; + CDE0C296174C4C0F009ED558 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CDE0C27A174C4C0F009ED558 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C281174C4C0F009ED558 /* UIKit.framework in Frameworks */, + CDE0C283174C4C0F009ED558 /* Foundation.framework in Frameworks */, + CDE0C285174C4C0F009ED558 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CDE0C274174C4C0E009ED558 = { + isa = PBXGroup; + children = ( + CDE0C286174C4C0F009ED558 /* MultiViewXIBNav */, + CDE0C27F174C4C0F009ED558 /* Frameworks */, + CDE0C27E174C4C0F009ED558 /* Products */, + ); + sourceTree = "<group>"; + }; + CDE0C27E174C4C0F009ED558 /* Products */ = { + isa = PBXGroup; + children = ( + CDE0C27D174C4C0F009ED558 /* MultiViewXIBNav.app */, + ); + name = Products; + sourceTree = "<group>"; + }; + CDE0C27F174C4C0F009ED558 /* Frameworks */ = { + isa = PBXGroup; + children = ( + CDE0C280174C4C0F009ED558 /* UIKit.framework */, + CDE0C282174C4C0F009ED558 /* Foundation.framework */, + CDE0C284174C4C0F009ED558 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = "<group>"; + }; + CDE0C286174C4C0F009ED558 /* MultiViewXIBNav */ = { + isa = PBXGroup; + children = ( + CDE0C28F174C4C0F009ED558 /* AppDelegate.h */, + CDE0C290174C4C0F009ED558 /* AppDelegate.m */, + CDE0C287174C4C0F009ED558 /* Supporting Files */, + ); + path = MultiViewXIBNav; + sourceTree = "<group>"; + }; + CDE0C287174C4C0F009ED558 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + CDE0C288174C4C0F009ED558 /* MultiViewXIBNav-Info.plist */, + CDE0C289174C4C0F009ED558 /* InfoPlist.strings */, + CDE0C28C174C4C0F009ED558 /* main.m */, + CDE0C28E174C4C0F009ED558 /* MultiViewXIBNav-Prefix.pch */, + CDE0C292174C4C0F009ED558 /* Default.png */, + CDE0C294174C4C0F009ED558 /* Default@2x.png */, + CDE0C296174C4C0F009ED558 /* Default-568h@2x.png */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CDE0C27C174C4C0F009ED558 /* MultiViewXIBNav */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDE0C29A174C4C0F009ED558 /* Build configuration list for PBXNativeTarget "MultiViewXIBNav" */; + buildPhases = ( + CDE0C279174C4C0F009ED558 /* Sources */, + CDE0C27A174C4C0F009ED558 /* Frameworks */, + CDE0C27B174C4C0F009ED558 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MultiViewXIBNav; + productName = MultiViewXIBNav; + productReference = CDE0C27D174C4C0F009ED558 /* MultiViewXIBNav.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CDE0C275174C4C0E009ED558 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = "mo khan"; + }; + buildConfigurationList = CDE0C278174C4C0E009ED558 /* Build configuration list for PBXProject "MultiViewXIBNav" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = CDE0C274174C4C0E009ED558; + productRefGroup = CDE0C27E174C4C0F009ED558 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CDE0C27C174C4C0F009ED558 /* MultiViewXIBNav */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CDE0C27B174C4C0F009ED558 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C28B174C4C0F009ED558 /* InfoPlist.strings in Resources */, + CDE0C293174C4C0F009ED558 /* Default.png in Resources */, + CDE0C295174C4C0F009ED558 /* Default@2x.png in Resources */, + CDE0C297174C4C0F009ED558 /* Default-568h@2x.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CDE0C279174C4C0F009ED558 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C28D174C4C0F009ED558 /* main.m in Sources */, + CDE0C291174C4C0F009ED558 /* AppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + CDE0C289174C4C0F009ED558 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + CDE0C28A174C4C0F009ED558 /* en */, + ); + name = InfoPlist.strings; + sourceTree = "<group>"; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CDE0C298174C4C0F009ED558 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + CDE0C299174C4C0F009ED558 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CDE0C29B174C4C0F009ED558 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "MultiViewXIBNav/MultiViewXIBNav-Prefix.pch"; + INFOPLIST_FILE = "MultiViewXIBNav/MultiViewXIBNav-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + CDE0C29C174C4C0F009ED558 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "MultiViewXIBNav/MultiViewXIBNav-Prefix.pch"; + INFOPLIST_FILE = "MultiViewXIBNav/MultiViewXIBNav-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CDE0C278174C4C0E009ED558 /* Build configuration list for PBXProject "MultiViewXIBNav" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDE0C298174C4C0F009ED558 /* Debug */, + CDE0C299174C4C0F009ED558 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDE0C29A174C4C0F009ED558 /* Build configuration list for PBXNativeTarget "MultiViewXIBNav" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDE0C29B174C4C0F009ED558 /* Debug */, + CDE0C29C174C4C0F009ED558 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = CDE0C275174C4C0E009ED558 /* Project object */; +} diff --git a/MultiViewXIBNav/MultiViewXIBNav/AppDelegate.h b/MultiViewXIBNav/MultiViewXIBNav/AppDelegate.h new file mode 100644 index 0000000..4d8c91f --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface AppDelegate : UIResponder <UIApplicationDelegate> + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/MultiViewXIBNav/MultiViewXIBNav/AppDelegate.m b/MultiViewXIBNav/MultiViewXIBNav/AppDelegate.m new file mode 100644 index 0000000..6cacfff --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/AppDelegate.m @@ -0,0 +1,49 @@ +// +// AppDelegate.m +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "AppDelegate.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + self.window.backgroundColor = [UIColor whiteColor]; + [self.window makeKeyAndVisible]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/MultiViewXIBNav/MultiViewXIBNav/Default-568h@2x.png b/MultiViewXIBNav/MultiViewXIBNav/Default-568h@2x.png Binary files differnew file mode 100644 index 0000000..0891b7a --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/Default-568h@2x.png diff --git a/MultiViewXIBNav/MultiViewXIBNav/Default.png b/MultiViewXIBNav/MultiViewXIBNav/Default.png Binary files differnew file mode 100644 index 0000000..4c8ca6f --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/Default.png diff --git a/MultiViewXIBNav/MultiViewXIBNav/Default@2x.png b/MultiViewXIBNav/MultiViewXIBNav/Default@2x.png Binary files differnew file mode 100644 index 0000000..35b84cf --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/Default@2x.png diff --git a/MultiViewXIBNav/MultiViewXIBNav/MultiViewXIBNav-Info.plist b/MultiViewXIBNav/MultiViewXIBNav/MultiViewXIBNav-Info.plist new file mode 100644 index 0000000..72d55a8 --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/MultiViewXIBNav-Info.plist @@ -0,0 +1,38 @@ +<?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>en</string> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>mokhan.ca.${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>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>UIRequiredDeviceCapabilities</key> + <array> + <string>armv7</string> + </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> diff --git a/MultiViewXIBNav/MultiViewXIBNav/MultiViewXIBNav-Prefix.pch b/MultiViewXIBNav/MultiViewXIBNav/MultiViewXIBNav-Prefix.pch new file mode 100644 index 0000000..09bcb14 --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/MultiViewXIBNav-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'MultiViewXIBNav' target in the 'MultiViewXIBNav' project +// + +#import <Availability.h> + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import <UIKit/UIKit.h> + #import <Foundation/Foundation.h> +#endif diff --git a/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.h b/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.h new file mode 100644 index 0000000..66218e4 --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.h @@ -0,0 +1,13 @@ +// +// SecondViewController.h +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface SecondViewController : UIViewController + +@end diff --git a/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.m b/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.m new file mode 100644 index 0000000..36c372a --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.m @@ -0,0 +1,38 @@ +// +// SecondViewController.m +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "SecondViewController.h" + +@interface SecondViewController () + +@end + +@implementation SecondViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.xib b/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.xib new file mode 100644 index 0000000..13b6c5e --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/SecondViewController.xib @@ -0,0 +1,137 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1536</int> + <string key="IBDocument.SystemVersion">12A269</string> + <string key="IBDocument.InterfaceBuilderVersion">2835</string> + <string key="IBDocument.AppKitVersion">1187</string> + <string key="IBDocument.HIToolboxVersion">624.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">1919</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <reference key="NSNextKeyView"/> + <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> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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">3</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"/> + <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> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">SecondViewController</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> + </dictionary> + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> + <nil key="activeLocalization"/> + <dictionary class="NSMutableDictionary" key="localizations"/> + <nil key="sourceID"/> + <int key="maxID">3</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">SecondViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/SecondViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">1919</string> + </data> +</archive> diff --git a/MultiViewXIBNav/MultiViewXIBNav/en.lproj/InfoPlist.strings b/MultiViewXIBNav/MultiViewXIBNav/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/MultiViewXIBNav/MultiViewXIBNav/main.m b/MultiViewXIBNav/MultiViewXIBNav/main.m new file mode 100644 index 0000000..f5cabe7 --- /dev/null +++ b/MultiViewXIBNav/MultiViewXIBNav/main.m @@ -0,0 +1,18 @@ +// +// main.m +// MultiViewXIBNav +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/MultiViewXIBTabBar/FirstViewController.h b/MultiViewXIBTabBar/FirstViewController.h new file mode 100644 index 0000000..733b0e5 --- /dev/null +++ b/MultiViewXIBTabBar/FirstViewController.h @@ -0,0 +1,13 @@ +// +// FirstViewController.h +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface FirstViewController : UIViewController + +@end diff --git a/MultiViewXIBTabBar/FirstViewController.m b/MultiViewXIBTabBar/FirstViewController.m new file mode 100644 index 0000000..2970e97 --- /dev/null +++ b/MultiViewXIBTabBar/FirstViewController.m @@ -0,0 +1,40 @@ +// +// FirstViewController.m +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "FirstViewController.h" + +@interface FirstViewController () + +@end + +@implementation FirstViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + self.title = @"First"; + self.tabBarItem.image = [UIImage imageNamed:@"first.png"]; + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/MultiViewXIBTabBar/FirstViewController.xib b/MultiViewXIBTabBar/FirstViewController.xib new file mode 100644 index 0000000..1f58f9d --- /dev/null +++ b/MultiViewXIBTabBar/FirstViewController.xib @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1552</int> + <string key="IBDocument.SystemVersion">12D78</string> + <string key="IBDocument.InterfaceBuilderVersion">3084</string> + <string key="IBDocument.AppKitVersion">1187.37</string> + <string key="IBDocument.HIToolboxVersion">626.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">2083</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">1</int> + <bytes key="NSRGB">MSAwIDAuMDExNzg4NjU2MTQAA</bytes> + </object> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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">3</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"/> + <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> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">FirstViewController</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> + </dictionary> + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> + <nil key="activeLocalization"/> + <dictionary class="NSMutableDictionary" key="localizations"/> + <nil key="sourceID"/> + <int key="maxID">3</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">FirstViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/FirstViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">2083</string> + </data> +</archive> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.pbxproj b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.pbxproj new file mode 100644 index 0000000..1c79981 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.pbxproj @@ -0,0 +1,341 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + CDE0C2B4174C5D48009ED558 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C2B3174C5D48009ED558 /* UIKit.framework */; }; + CDE0C2B6174C5D48009ED558 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C2B5174C5D48009ED558 /* Foundation.framework */; }; + CDE0C2B8174C5D48009ED558 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CDE0C2B7174C5D48009ED558 /* CoreGraphics.framework */; }; + CDE0C2BE174C5D48009ED558 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2BC174C5D48009ED558 /* InfoPlist.strings */; }; + CDE0C2C0174C5D48009ED558 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C2BF174C5D48009ED558 /* main.m */; }; + CDE0C2C4174C5D48009ED558 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C2C3174C5D48009ED558 /* AppDelegate.m */; }; + CDE0C2C6174C5D48009ED558 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2C5174C5D48009ED558 /* Default.png */; }; + CDE0C2C8174C5D48009ED558 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2C7174C5D48009ED558 /* Default@2x.png */; }; + CDE0C2CA174C5D48009ED558 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2C9174C5D48009ED558 /* Default-568h@2x.png */; }; + CDE0C2D3174C5D5F009ED558 /* FirstViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C2D1174C5D5F009ED558 /* FirstViewController.m */; }; + CDE0C2D4174C5D5F009ED558 /* FirstViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2D2174C5D5F009ED558 /* FirstViewController.xib */; }; + CDE0C2D8174C5D72009ED558 /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C2D6174C5D72009ED558 /* SecondViewController.m */; }; + CDE0C2D9174C5D72009ED558 /* SecondViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2D7174C5D72009ED558 /* SecondViewController.xib */; }; + CDE0C2DD174C5D7D009ED558 /* ThirdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CDE0C2DB174C5D7D009ED558 /* ThirdViewController.m */; }; + CDE0C2DE174C5D7D009ED558 /* ThirdViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2DC174C5D7D009ED558 /* ThirdViewController.xib */; }; + CDE0C2E4174C6046009ED558 /* first.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2E0174C6046009ED558 /* first.png */; }; + CDE0C2E5174C6046009ED558 /* first@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2E1174C6046009ED558 /* first@2x.png */; }; + CDE0C2E6174C6046009ED558 /* second.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2E2174C6046009ED558 /* second.png */; }; + CDE0C2E7174C6046009ED558 /* second@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CDE0C2E3174C6046009ED558 /* second@2x.png */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + CDE0C2B0174C5D48009ED558 /* MultiViewXIBTabBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MultiViewXIBTabBar.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CDE0C2B3174C5D48009ED558 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + CDE0C2B5174C5D48009ED558 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + CDE0C2B7174C5D48009ED558 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + CDE0C2BB174C5D48009ED558 /* MultiViewXIBTabBar-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MultiViewXIBTabBar-Info.plist"; sourceTree = "<group>"; }; + CDE0C2BD174C5D48009ED558 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; + CDE0C2BF174C5D48009ED558 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; + CDE0C2C1174C5D48009ED558 /* MultiViewXIBTabBar-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MultiViewXIBTabBar-Prefix.pch"; sourceTree = "<group>"; }; + CDE0C2C2174C5D48009ED558 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; + CDE0C2C3174C5D48009ED558 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; + CDE0C2C5174C5D48009ED558 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; + CDE0C2C7174C5D48009ED558 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; }; + CDE0C2C9174C5D48009ED558 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; }; + CDE0C2D0174C5D5F009ED558 /* FirstViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FirstViewController.h; path = ../FirstViewController.h; sourceTree = "<group>"; }; + CDE0C2D1174C5D5F009ED558 /* FirstViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FirstViewController.m; path = ../FirstViewController.m; sourceTree = "<group>"; }; + CDE0C2D2174C5D5F009ED558 /* FirstViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = FirstViewController.xib; path = ../FirstViewController.xib; sourceTree = "<group>"; }; + CDE0C2D5174C5D72009ED558 /* SecondViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = "<group>"; }; + CDE0C2D6174C5D72009ED558 /* SecondViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = "<group>"; }; + CDE0C2D7174C5D72009ED558 /* SecondViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SecondViewController.xib; sourceTree = "<group>"; }; + CDE0C2DA174C5D7D009ED558 /* ThirdViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThirdViewController.h; sourceTree = "<group>"; }; + CDE0C2DB174C5D7D009ED558 /* ThirdViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ThirdViewController.m; sourceTree = "<group>"; }; + CDE0C2DC174C5D7D009ED558 /* ThirdViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ThirdViewController.xib; sourceTree = "<group>"; }; + CDE0C2E0174C6046009ED558 /* first.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = first.png; sourceTree = "<group>"; }; + CDE0C2E1174C6046009ED558 /* first@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "first@2x.png"; sourceTree = "<group>"; }; + CDE0C2E2174C6046009ED558 /* second.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = second.png; sourceTree = "<group>"; }; + CDE0C2E3174C6046009ED558 /* second@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "second@2x.png"; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CDE0C2AD174C5D48009ED558 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C2B4174C5D48009ED558 /* UIKit.framework in Frameworks */, + CDE0C2B6174C5D48009ED558 /* Foundation.framework in Frameworks */, + CDE0C2B8174C5D48009ED558 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CDE0C2A7174C5D48009ED558 = { + isa = PBXGroup; + children = ( + CDE0C2B9174C5D48009ED558 /* MultiViewXIBTabBar */, + CDE0C2B2174C5D48009ED558 /* Frameworks */, + CDE0C2B1174C5D48009ED558 /* Products */, + ); + sourceTree = "<group>"; + }; + CDE0C2B1174C5D48009ED558 /* Products */ = { + isa = PBXGroup; + children = ( + CDE0C2B0174C5D48009ED558 /* MultiViewXIBTabBar.app */, + ); + name = Products; + sourceTree = "<group>"; + }; + CDE0C2B2174C5D48009ED558 /* Frameworks */ = { + isa = PBXGroup; + children = ( + CDE0C2B3174C5D48009ED558 /* UIKit.framework */, + CDE0C2B5174C5D48009ED558 /* Foundation.framework */, + CDE0C2B7174C5D48009ED558 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = "<group>"; + }; + CDE0C2B9174C5D48009ED558 /* MultiViewXIBTabBar */ = { + isa = PBXGroup; + children = ( + CDE0C2DF174C6017009ED558 /* assets */, + CDE0C2D0174C5D5F009ED558 /* FirstViewController.h */, + CDE0C2D1174C5D5F009ED558 /* FirstViewController.m */, + CDE0C2D2174C5D5F009ED558 /* FirstViewController.xib */, + CDE0C2C2174C5D48009ED558 /* AppDelegate.h */, + CDE0C2C3174C5D48009ED558 /* AppDelegate.m */, + CDE0C2BA174C5D48009ED558 /* Supporting Files */, + CDE0C2D5174C5D72009ED558 /* SecondViewController.h */, + CDE0C2D6174C5D72009ED558 /* SecondViewController.m */, + CDE0C2D7174C5D72009ED558 /* SecondViewController.xib */, + CDE0C2DA174C5D7D009ED558 /* ThirdViewController.h */, + CDE0C2DB174C5D7D009ED558 /* ThirdViewController.m */, + CDE0C2DC174C5D7D009ED558 /* ThirdViewController.xib */, + ); + path = MultiViewXIBTabBar; + sourceTree = "<group>"; + }; + CDE0C2BA174C5D48009ED558 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + CDE0C2BB174C5D48009ED558 /* MultiViewXIBTabBar-Info.plist */, + CDE0C2BC174C5D48009ED558 /* InfoPlist.strings */, + CDE0C2BF174C5D48009ED558 /* main.m */, + CDE0C2C1174C5D48009ED558 /* MultiViewXIBTabBar-Prefix.pch */, + CDE0C2C5174C5D48009ED558 /* Default.png */, + CDE0C2C7174C5D48009ED558 /* Default@2x.png */, + CDE0C2C9174C5D48009ED558 /* Default-568h@2x.png */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; + CDE0C2DF174C6017009ED558 /* assets */ = { + isa = PBXGroup; + children = ( + CDE0C2E0174C6046009ED558 /* first.png */, + CDE0C2E1174C6046009ED558 /* first@2x.png */, + CDE0C2E2174C6046009ED558 /* second.png */, + CDE0C2E3174C6046009ED558 /* second@2x.png */, + ); + name = assets; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CDE0C2AF174C5D48009ED558 /* MultiViewXIBTabBar */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDE0C2CD174C5D48009ED558 /* Build configuration list for PBXNativeTarget "MultiViewXIBTabBar" */; + buildPhases = ( + CDE0C2AC174C5D48009ED558 /* Sources */, + CDE0C2AD174C5D48009ED558 /* Frameworks */, + CDE0C2AE174C5D48009ED558 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MultiViewXIBTabBar; + productName = MultiViewXIBTabBar; + productReference = CDE0C2B0174C5D48009ED558 /* MultiViewXIBTabBar.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CDE0C2A8174C5D48009ED558 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0460; + ORGANIZATIONNAME = "mo khan"; + }; + buildConfigurationList = CDE0C2AB174C5D48009ED558 /* Build configuration list for PBXProject "MultiViewXIBTabBar" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = CDE0C2A7174C5D48009ED558; + productRefGroup = CDE0C2B1174C5D48009ED558 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CDE0C2AF174C5D48009ED558 /* MultiViewXIBTabBar */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CDE0C2AE174C5D48009ED558 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C2BE174C5D48009ED558 /* InfoPlist.strings in Resources */, + CDE0C2C6174C5D48009ED558 /* Default.png in Resources */, + CDE0C2C8174C5D48009ED558 /* Default@2x.png in Resources */, + CDE0C2CA174C5D48009ED558 /* Default-568h@2x.png in Resources */, + CDE0C2D4174C5D5F009ED558 /* FirstViewController.xib in Resources */, + CDE0C2D9174C5D72009ED558 /* SecondViewController.xib in Resources */, + CDE0C2DE174C5D7D009ED558 /* ThirdViewController.xib in Resources */, + CDE0C2E4174C6046009ED558 /* first.png in Resources */, + CDE0C2E5174C6046009ED558 /* first@2x.png in Resources */, + CDE0C2E6174C6046009ED558 /* second.png in Resources */, + CDE0C2E7174C6046009ED558 /* second@2x.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CDE0C2AC174C5D48009ED558 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDE0C2C0174C5D48009ED558 /* main.m in Sources */, + CDE0C2C4174C5D48009ED558 /* AppDelegate.m in Sources */, + CDE0C2D3174C5D5F009ED558 /* FirstViewController.m in Sources */, + CDE0C2D8174C5D72009ED558 /* SecondViewController.m in Sources */, + CDE0C2DD174C5D7D009ED558 /* ThirdViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + CDE0C2BC174C5D48009ED558 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + CDE0C2BD174C5D48009ED558 /* en */, + ); + name = InfoPlist.strings; + sourceTree = "<group>"; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CDE0C2CB174C5D48009ED558 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + CDE0C2CC174C5D48009ED558 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CDE0C2CE174C5D48009ED558 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "MultiViewXIBTabBar/MultiViewXIBTabBar-Prefix.pch"; + INFOPLIST_FILE = "MultiViewXIBTabBar/MultiViewXIBTabBar-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + CDE0C2CF174C5D48009ED558 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "MultiViewXIBTabBar/MultiViewXIBTabBar-Prefix.pch"; + INFOPLIST_FILE = "MultiViewXIBTabBar/MultiViewXIBTabBar-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CDE0C2AB174C5D48009ED558 /* Build configuration list for PBXProject "MultiViewXIBTabBar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDE0C2CB174C5D48009ED558 /* Debug */, + CDE0C2CC174C5D48009ED558 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDE0C2CD174C5D48009ED558 /* Build configuration list for PBXNativeTarget "MultiViewXIBTabBar" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDE0C2CE174C5D48009ED558 /* Debug */, + CDE0C2CF174C5D48009ED558 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = CDE0C2A8174C5D48009ED558 /* Project object */; +} diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..6ba64f5 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Workspace + version = "1.0"> + <FileRef + location = "self:MultiViewXIBTabBar.xcodeproj"> + </FileRef> +</Workspace> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate Binary files differnew file mode 100644 index 0000000..f8b4612 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/MultiViewXIBTabBar.xcscheme b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/MultiViewXIBTabBar.xcscheme new file mode 100644 index 0000000..ff8007c --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/MultiViewXIBTabBar.xcscheme @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Scheme + LastUpgradeVersion = "0460" + version = "1.3"> + <BuildAction + parallelizeBuildables = "YES" + buildImplicitDependencies = "YES"> + <BuildActionEntries> + <BuildActionEntry + buildForTesting = "YES" + buildForRunning = "YES" + buildForProfiling = "YES" + buildForArchiving = "YES" + buildForAnalyzing = "YES"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "CDE0C2AF174C5D48009ED558" + BuildableName = "MultiViewXIBTabBar.app" + BlueprintName = "MultiViewXIBTabBar" + ReferencedContainer = "container:MultiViewXIBTabBar.xcodeproj"> + </BuildableReference> + </BuildActionEntry> + </BuildActionEntries> + </BuildAction> + <TestAction + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + shouldUseLaunchSchemeArgsEnv = "YES" + buildConfiguration = "Debug"> + <Testables> + </Testables> + <MacroExpansion> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "CDE0C2AF174C5D48009ED558" + BuildableName = "MultiViewXIBTabBar.app" + BlueprintName = "MultiViewXIBTabBar" + ReferencedContainer = "container:MultiViewXIBTabBar.xcodeproj"> + </BuildableReference> + </MacroExpansion> + </TestAction> + <LaunchAction + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + launchStyle = "0" + useCustomWorkingDirectory = "NO" + buildConfiguration = "Debug" + ignoresPersistentStateOnLaunch = "NO" + debugDocumentVersioning = "YES" + allowLocationSimulation = "YES"> + <BuildableProductRunnable> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "CDE0C2AF174C5D48009ED558" + BuildableName = "MultiViewXIBTabBar.app" + BlueprintName = "MultiViewXIBTabBar" + ReferencedContainer = "container:MultiViewXIBTabBar.xcodeproj"> + </BuildableReference> + </BuildableProductRunnable> + <AdditionalOptions> + </AdditionalOptions> + </LaunchAction> + <ProfileAction + shouldUseLaunchSchemeArgsEnv = "YES" + savedToolIdentifier = "" + useCustomWorkingDirectory = "NO" + buildConfiguration = "Release" + debugDocumentVersioning = "YES"> + <BuildableProductRunnable> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "CDE0C2AF174C5D48009ED558" + BuildableName = "MultiViewXIBTabBar.app" + BlueprintName = "MultiViewXIBTabBar" + ReferencedContainer = "container:MultiViewXIBTabBar.xcodeproj"> + </BuildableReference> + </BuildableProductRunnable> + </ProfileAction> + <AnalyzeAction + buildConfiguration = "Debug"> + </AnalyzeAction> + <ArchiveAction + buildConfiguration = "Release" + revealArchiveInOrganizer = "YES"> + </ArchiveAction> +</Scheme> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..d1bd67b --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ +<?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>SchemeUserState</key> + <dict> + <key>MultiViewXIBTabBar.xcscheme</key> + <dict> + <key>orderHint</key> + <integer>0</integer> + </dict> + </dict> + <key>SuppressBuildableAutocreation</key> + <dict> + <key>CDE0C2AF174C5D48009ED558</key> + <dict> + <key>primary</key> + <true/> + </dict> + </dict> +</dict> +</plist> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/AppDelegate.h b/MultiViewXIBTabBar/MultiViewXIBTabBar/AppDelegate.h new file mode 100644 index 0000000..16429a0 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/AppDelegate.h @@ -0,0 +1,16 @@ +// +// AppDelegate.h +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface AppDelegate : UIResponder <UIApplicationDelegate> + +@property (strong, nonatomic) UIWindow *window; +@property (strong, nonatomic) UITabBarController * myTabBarController; + +@end diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/AppDelegate.m b/MultiViewXIBTabBar/MultiViewXIBTabBar/AppDelegate.m new file mode 100644 index 0000000..2decc52 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/AppDelegate.m @@ -0,0 +1,58 @@ +// +// AppDelegate.m +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "AppDelegate.h" +#import "FirstViewController.h" +#import "SecondViewController.h" +#import"ThirdViewController.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + FirstViewController * first = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil]; + FirstViewController * second = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil]; + FirstViewController * third = [[ThirdViewController alloc] initWithNibName:@"ThirdViewController" bundle:nil]; + self.myTabBarController = [[UITabBarController alloc] init]; + self.myTabBarController.viewControllers = [[NSArray alloc] initWithObjects:first, second, third, nil]; + self.window.rootViewController = self.myTabBarController; + self.window.backgroundColor = [UIColor whiteColor]; + [self.window makeKeyAndVisible]; + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/Default-568h@2x.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/Default-568h@2x.png Binary files differnew file mode 100644 index 0000000..0891b7a --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/Default-568h@2x.png diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/Default.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/Default.png Binary files differnew file mode 100644 index 0000000..4c8ca6f --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/Default.png diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/Default@2x.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/Default@2x.png Binary files differnew file mode 100644 index 0000000..35b84cf --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/Default@2x.png diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/MultiViewXIBTabBar-Info.plist b/MultiViewXIBTabBar/MultiViewXIBTabBar/MultiViewXIBTabBar-Info.plist new file mode 100644 index 0000000..72d55a8 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/MultiViewXIBTabBar-Info.plist @@ -0,0 +1,38 @@ +<?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>en</string> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIdentifier</key> + <string>mokhan.ca.${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>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1.0</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>UIRequiredDeviceCapabilities</key> + <array> + <string>armv7</string> + </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/MultiViewXIBTabBar-Prefix.pch b/MultiViewXIBTabBar/MultiViewXIBTabBar/MultiViewXIBTabBar-Prefix.pch new file mode 100644 index 0000000..451db19 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/MultiViewXIBTabBar-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'MultiViewXIBTabBar' target in the 'MultiViewXIBTabBar' project +// + +#import <Availability.h> + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import <UIKit/UIKit.h> + #import <Foundation/Foundation.h> +#endif diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.h b/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.h new file mode 100644 index 0000000..c356957 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.h @@ -0,0 +1,13 @@ +// +// SecondViewController.h +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface SecondViewController : UIViewController + +@end diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.m b/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.m new file mode 100644 index 0000000..290daa9 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.m @@ -0,0 +1,40 @@ +// +// SecondViewController.m +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "SecondViewController.h" + +@interface SecondViewController () + +@end + +@implementation SecondViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + self.title = @"Second"; + self.tabBarItem.image = [UIImage imageNamed:@"second.png"]; + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.xib b/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.xib new file mode 100644 index 0000000..e46dba6 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/SecondViewController.xib @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1552</int> + <string key="IBDocument.SystemVersion">12D78</string> + <string key="IBDocument.InterfaceBuilderVersion">3084</string> + <string key="IBDocument.AppKitVersion">1187.37</string> + <string key="IBDocument.HIToolboxVersion">626.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">2083</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">1</int> + <bytes key="NSRGB">MCAxIDAuMDU4MjUzMDc3OQA</bytes> + </object> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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">3</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"/> + <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> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">SecondViewController</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> + </dictionary> + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> + <nil key="activeLocalization"/> + <dictionary class="NSMutableDictionary" key="localizations"/> + <nil key="sourceID"/> + <int key="maxID">3</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">SecondViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/SecondViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">2083</string> + </data> +</archive> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.h b/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.h new file mode 100644 index 0000000..349df5c --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.h @@ -0,0 +1,13 @@ +// +// ThirdViewController.h +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +@interface ThirdViewController : UIViewController + +@end diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.m b/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.m new file mode 100644 index 0000000..be54b54 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.m @@ -0,0 +1,40 @@ +// +// ThirdViewController.m +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import "ThirdViewController.h" + +@interface ThirdViewController () + +@end + +@implementation ThirdViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + self.title = @"Third"; + self.tabBarItem.image = [UIImage imageNamed:@"third.png"]; + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.xib b/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.xib new file mode 100644 index 0000000..48ea933 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/ThirdViewController.xib @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00"> + <data> + <int key="IBDocument.SystemTarget">1552</int> + <string key="IBDocument.SystemVersion">12D78</string> + <string key="IBDocument.InterfaceBuilderVersion">3084</string> + <string key="IBDocument.AppKitVersion">1187.37</string> + <string key="IBDocument.HIToolboxVersion">626.00</string> + <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> + <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string key="NS.object.0">2083</string> + </object> + <array key="IBDocument.IntegratedClassDependencies"> + <string>IBProxyObject</string> + <string>IBUIView</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> + <string key="NSFrame">{{0, 20}, {320, 548}}</string> + <reference key="NSSuperview"/> + <reference key="NSWindow"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">1</int> + <bytes key="NSRGB">MCAwLjA5MDkyNDU3MzkxIDEAA</bytes> + </object> + <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> + <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics"> + <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string> + <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap"> + <bool key="EncodedWithXMLCoder">YES</bool> + <array key="dict.sortedKeys"> + <integer value="1"/> + <integer value="3"/> + </array> + <array key="dict.values"> + <string>{320, 568}</string> + <string>{568, 320}</string> + </array> + </object> + <string key="IBUITargetRuntime">IBCocoaTouchFramework</string> + <string key="IBUIDisplayName">Retina 4 Full Screen</string> + <int key="IBUIType">2</int> + </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">3</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"/> + <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> + </array> + </object> + <dictionary class="NSMutableDictionary" key="flattenedProperties"> + <string key="-1.CustomClassName">ThirdViewController</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> + </dictionary> + <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/> + <nil key="activeLocalization"/> + <dictionary class="NSMutableDictionary" key="localizations"/> + <nil key="sourceID"/> + <int key="maxID">3</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <array class="NSMutableArray" key="referencedPartialClassDescriptions"> + <object class="IBPartialClassDescription"> + <string key="className">ThirdViewController</string> + <string key="superclassName">UIViewController</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">./Classes/ThirdViewController.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> + <bool key="IBDocument.UseAutolayout">YES</bool> + <string key="IBCocoaTouchPluginVersion">2083</string> + </data> +</archive> diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/en.lproj/InfoPlist.strings b/MultiViewXIBTabBar/MultiViewXIBTabBar/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/first.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/first.png Binary files differnew file mode 100644 index 0000000..9300ee2 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/first.png diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/first@2x.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/first@2x.png Binary files differnew file mode 100644 index 0000000..374d78e --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/first@2x.png diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/main.m b/MultiViewXIBTabBar/MultiViewXIBTabBar/main.m new file mode 100644 index 0000000..b2ce5c5 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/main.m @@ -0,0 +1,18 @@ +// +// main.m +// MultiViewXIBTabBar +// +// Created by mo khan on 2013-05-21. +// Copyright (c) 2013 mo khan. All rights reserved. +// + +#import <UIKit/UIKit.h> + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/second.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/second.png Binary files differnew file mode 100644 index 0000000..1100b48 --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/second.png diff --git a/MultiViewXIBTabBar/MultiViewXIBTabBar/second@2x.png b/MultiViewXIBTabBar/MultiViewXIBTabBar/second@2x.png Binary files differnew file mode 100644 index 0000000..368d38f --- /dev/null +++ b/MultiViewXIBTabBar/MultiViewXIBTabBar/second@2x.png |
