Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial Commit

  • Loading branch information...
commit f5ffb6b3d6bdc29d95a7bcb305dae67798e89733 0 parents
Nathan Reed authored October 18, 2010
15  .gitignore
... ...
@@ -0,0 +1,15 @@
  1
+# standard xcode .gitignore
  2
+# from: http://stackoverflow.com/questions/49478/
  3
+
  4
+.DS_Store
  5
+*.swp
  6
+*~.nib
  7
+
  8
+build/
  9
+
  10
+*.pbxuser
  11
+*.perspective
  12
+*.perspectivev3
  13
+
  14
+*.mode1v3
  15
+*.mode2v3
22  Demo/Classes/TDSemiModalAppDelegate.h
... ...
@@ -0,0 +1,22 @@
  1
+//
  2
+//  TDSemiModalAppDelegate.h
  3
+//  TDSemiModal
  4
+//
  5
+//  Created by Nathan  Reed on 18/10/10.
  6
+//  Copyright 2010 Nathan Reed. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+@class TDSemiModalDemoViewController;
  12
+
  13
+@interface TDSemiModalAppDelegate : NSObject <UIApplicationDelegate> {
  14
+    UIWindow *window;
  15
+    TDSemiModalDemoViewController *viewController;
  16
+}
  17
+
  18
+@property (nonatomic, retain) IBOutlet UIWindow *window;
  19
+@property (nonatomic, retain) IBOutlet TDSemiModalDemoViewController *viewController;
  20
+
  21
+@end
  22
+
88  Demo/Classes/TDSemiModalAppDelegate.m
... ...
@@ -0,0 +1,88 @@
  1
+//
  2
+//  TDSemiModalAppDelegate.m
  3
+//  TDSemiModal
  4
+//
  5
+//  Created by Nathan  Reed on 18/10/10.
  6
+//  Copyright 2010 Nathan Reed. All rights reserved.
  7
+//
  8
+
  9
+#import "TDSemiModalAppDelegate.h"
  10
+#import "TDSemiModalDemoViewController.h"
  11
+
  12
+@implementation TDSemiModalAppDelegate
  13
+
  14
+@synthesize window;
  15
+@synthesize viewController;
  16
+
  17
+
  18
+#pragma mark -
  19
+#pragma mark Application lifecycle
  20
+
  21
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  22
+
  23
+    // Override point for customization after application launch.
  24
+
  25
+    // Add the view controller's view to the window and display.
  26
+    [window addSubview:viewController.view];
  27
+    [window makeKeyAndVisible];
  28
+
  29
+    return YES;
  30
+}
  31
+
  32
+
  33
+- (void)applicationWillResignActive:(UIApplication *)application {
  34
+    /*
  35
+     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.
  36
+     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.
  37
+     */
  38
+}
  39
+
  40
+
  41
+- (void)applicationDidEnterBackground:(UIApplication *)application {
  42
+    /*
  43
+     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.
  44
+     If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
  45
+     */
  46
+}
  47
+
  48
+
  49
+- (void)applicationWillEnterForeground:(UIApplication *)application {
  50
+    /*
  51
+     Called as part of  transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
  52
+     */
  53
+}
  54
+
  55
+
  56
+- (void)applicationDidBecomeActive:(UIApplication *)application {
  57
+    /*
  58
+     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.
  59
+     */
  60
+}
  61
+
  62
+
  63
+- (void)applicationWillTerminate:(UIApplication *)application {
  64
+    /*
  65
+     Called when the application is about to terminate.
  66
+     See also applicationDidEnterBackground:.
  67
+     */
  68
+}
  69
+
  70
+
  71
+#pragma mark -
  72
+#pragma mark Memory management
  73
+
  74
+- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
  75
+    /*
  76
+     Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
  77
+     */
  78
+}
  79
+
  80
+
  81
+- (void)dealloc {
  82
+    [viewController release];
  83
+    [window release];
  84
+    [super dealloc];
  85
+}
  86
+
  87
+
  88
+@end
21  Demo/Classes/TDSemiModalDemoViewController.h
... ...
@@ -0,0 +1,21 @@
  1
+//
  2
+//  TDSemiModalViewController.h
  3
+//  TDSemiModal
  4
+//
  5
+//  Created by Nathan  Reed on 18/10/10.
  6
+//  Copyright 2010 Nathan Reed. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+#import "TDDatePickerController.h"
  11
+
  12
+@interface TDSemiModalDemoViewController : UIViewController {
  13
+	IBOutlet TDDatePickerController* datePickerView;
  14
+
  15
+	NSDate* selectedDate;
  16
+}
  17
+
  18
+-(IBAction)dateButtonClicked:(id)sender;
  19
+
  20
+@end
  21
+
59  Demo/Classes/TDSemiModalDemoViewController.m
... ...
@@ -0,0 +1,59 @@
  1
+//
  2
+//  TDSemiModalViewController.m
  3
+//  TDSemiModal
  4
+//
  5
+//  Created by Nathan  Reed on 18/10/10.
  6
+//  Copyright 2010 Nathan Reed. All rights reserved.
  7
+//
  8
+
  9
+#import "TDSemiModalDemoViewController.h"
  10
+#import "TDSemiModal.h"
  11
+
  12
+@implementation TDSemiModalDemoViewController
  13
+
  14
+#pragma mark -
  15
+#pragma mark View lifecycle
  16
+
  17
+- (void)viewDidLoad {
  18
+    [super viewDidLoad];
  19
+}
  20
+
  21
+- (void)didReceiveMemoryWarning {
  22
+    [super didReceiveMemoryWarning];
  23
+}
  24
+
  25
+- (void)viewDidUnload {
  26
+}
  27
+
  28
+-(void)dealloc {
  29
+    [super dealloc];
  30
+}
  31
+
  32
+#pragma mark -
  33
+#pragma mark User Actions
  34
+
  35
+-(IBAction)dateButtonClicked:(id)sender {
  36
+	[self presentSemiModalViewController:datePickerView];
  37
+}
  38
+
  39
+
  40
+#pragma mark -
  41
+#pragma mark Date Picker Delegate
  42
+
  43
+-(void)datePickerSetDate:(TDDatePickerController*)viewController {
  44
+	[self dismissSemiModalViewController:datePickerView];
  45
+
  46
+	selectedDate = viewController.datePicker.date;
  47
+}
  48
+
  49
+-(void)datePickerClearDate:(TDDatePickerController*)viewController {
  50
+	[self dismissSemiModalViewController:datePickerView];
  51
+
  52
+	selectedDate = nil;
  53
+}
  54
+
  55
+-(void)datePickerCancel:(TDDatePickerController*)viewController {
  56
+	[self dismissSemiModalViewController:datePickerView];
  57
+}
  58
+
  59
+@end
457  Demo/MainWindow.xib
... ...
@@ -0,0 +1,457 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
  3
+	<data>
  4
+		<int key="IBDocument.SystemTarget">1024</int>
  5
+		<string key="IBDocument.SystemVersion">10F569</string>
  6
+		<string key="IBDocument.InterfaceBuilderVersion">804</string>
  7
+		<string key="IBDocument.AppKitVersion">1038.29</string>
  8
+		<string key="IBDocument.HIToolboxVersion">461.00</string>
  9
+		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
  10
+			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  11
+			<string key="NS.object.0">123</string>
  12
+		</object>
  13
+		<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
  14
+			<bool key="EncodedWithXMLCoder">YES</bool>
  15
+		</object>
  16
+		<object class="NSArray" key="IBDocument.PluginDependencies">
  17
+			<bool key="EncodedWithXMLCoder">YES</bool>
  18
+			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  19
+		</object>
  20
+		<object class="NSMutableDictionary" key="IBDocument.Metadata">
  21
+			<bool key="EncodedWithXMLCoder">YES</bool>
  22
+			<object class="NSArray" key="dict.sortedKeys" id="0">
  23
+				<bool key="EncodedWithXMLCoder">YES</bool>
  24
+			</object>
  25
+			<object class="NSMutableArray" key="dict.values">
  26
+				<bool key="EncodedWithXMLCoder">YES</bool>
  27
+			</object>
  28
+		</object>
  29
+		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
  30
+			<bool key="EncodedWithXMLCoder">YES</bool>
  31
+			<object class="IBProxyObject" id="841351856">
  32
+				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
  33
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  34
+			</object>
  35
+			<object class="IBProxyObject" id="427554174">
  36
+				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
  37
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  38
+			</object>
  39
+			<object class="IBUICustomObject" id="664661524">
  40
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  41
+			</object>
  42
+			<object class="IBUIViewController" id="943309135">
  43
+				<string key="IBUINibName">TDSemiModalDemoViewController</string>
  44
+				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
  45
+				<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
  46
+					<int key="interfaceOrientation">1</int>
  47
+				</object>
  48
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  49
+				<bool key="IBUIHorizontal">NO</bool>
  50
+			</object>
  51
+			<object class="IBUIWindow" id="117978783">
  52
+				<nil key="NSNextResponder"/>
  53
+				<int key="NSvFlags">292</int>
  54
+				<string key="NSFrameSize">{320, 480}</string>
  55
+				<object class="NSColor" key="IBUIBackgroundColor">
  56
+					<int key="NSColorSpace">1</int>
  57
+					<bytes key="NSRGB">MSAxIDEAA</bytes>
  58
+				</object>
  59
+				<bool key="IBUIOpaque">NO</bool>
  60
+				<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
  61
+				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
  62
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  63
+				<bool key="IBUIResizesToFullScreen">YES</bool>
  64
+			</object>
  65
+		</object>
  66
+		<object class="IBObjectContainer" key="IBDocument.Objects">
  67
+			<object class="NSMutableArray" key="connectionRecords">
  68
+				<bool key="EncodedWithXMLCoder">YES</bool>
  69
+				<object class="IBConnectionRecord">
  70
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  71
+						<string key="label">delegate</string>
  72
+						<reference key="source" ref="841351856"/>
  73
+						<reference key="destination" ref="664661524"/>
  74
+					</object>
  75
+					<int key="connectionID">4</int>
  76
+				</object>
  77
+				<object class="IBConnectionRecord">
  78
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  79
+						<string key="label">viewController</string>
  80
+						<reference key="source" ref="664661524"/>
  81
+						<reference key="destination" ref="943309135"/>
  82
+					</object>
  83
+					<int key="connectionID">11</int>
  84
+				</object>
  85
+				<object class="IBConnectionRecord">
  86
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  87
+						<string key="label">window</string>
  88
+						<reference key="source" ref="664661524"/>
  89
+						<reference key="destination" ref="117978783"/>
  90
+					</object>
  91
+					<int key="connectionID">14</int>
  92
+				</object>
  93
+			</object>
  94
+			<object class="IBMutableOrderedSet" key="objectRecords">
  95
+				<object class="NSArray" key="orderedObjects">
  96
+					<bool key="EncodedWithXMLCoder">YES</bool>
  97
+					<object class="IBObjectRecord">
  98
+						<int key="objectID">0</int>
  99
+						<reference key="object" ref="0"/>
  100
+						<reference key="children" ref="1000"/>
  101
+						<nil key="parent"/>
  102
+					</object>
  103
+					<object class="IBObjectRecord">
  104
+						<int key="objectID">-1</int>
  105
+						<reference key="object" ref="841351856"/>
  106
+						<reference key="parent" ref="0"/>
  107
+						<string key="objectName">File's Owner</string>
  108
+					</object>
  109
+					<object class="IBObjectRecord">
  110
+						<int key="objectID">3</int>
  111
+						<reference key="object" ref="664661524"/>
  112
+						<reference key="parent" ref="0"/>
  113
+						<string key="objectName">TDSemiModal App Delegate</string>
  114
+					</object>
  115
+					<object class="IBObjectRecord">
  116
+						<int key="objectID">-2</int>
  117
+						<reference key="object" ref="427554174"/>
  118
+						<reference key="parent" ref="0"/>
  119
+					</object>
  120
+					<object class="IBObjectRecord">
  121
+						<int key="objectID">10</int>
  122
+						<reference key="object" ref="943309135"/>
  123
+						<reference key="parent" ref="0"/>
  124
+					</object>
  125
+					<object class="IBObjectRecord">
  126
+						<int key="objectID">12</int>
  127
+						<reference key="object" ref="117978783"/>
  128
+						<reference key="parent" ref="0"/>
  129
+					</object>
  130
+				</object>
  131
+			</object>
  132
+			<object class="NSMutableDictionary" key="flattenedProperties">
  133
+				<bool key="EncodedWithXMLCoder">YES</bool>
  134
+				<object class="NSArray" key="dict.sortedKeys">
  135
+					<bool key="EncodedWithXMLCoder">YES</bool>
  136
+					<string>-1.CustomClassName</string>
  137
+					<string>-2.CustomClassName</string>
  138
+					<string>10.CustomClassName</string>
  139
+					<string>10.IBEditorWindowLastContentRect</string>
  140
+					<string>10.IBPluginDependency</string>
  141
+					<string>12.IBEditorWindowLastContentRect</string>
  142
+					<string>12.IBPluginDependency</string>
  143
+					<string>3.CustomClassName</string>
  144
+					<string>3.IBPluginDependency</string>
  145
+				</object>
  146
+				<object class="NSMutableArray" key="dict.values">
  147
+					<bool key="EncodedWithXMLCoder">YES</bool>
  148
+					<string>UIApplication</string>
  149
+					<string>UIResponder</string>
  150
+					<string>TDSemiModalDemoViewController</string>
  151
+					<string>{{329, 376}, {320, 480}}</string>
  152
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  153
+					<string>{{525, 346}, {320, 480}}</string>
  154
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  155
+					<string>TDSemiModalAppDelegate</string>
  156
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  157
+				</object>
  158
+			</object>
  159
+			<object class="NSMutableDictionary" key="unlocalizedProperties">
  160
+				<bool key="EncodedWithXMLCoder">YES</bool>
  161
+				<reference key="dict.sortedKeys" ref="0"/>
  162
+				<object class="NSMutableArray" key="dict.values">
  163
+					<bool key="EncodedWithXMLCoder">YES</bool>
  164
+				</object>
  165
+			</object>
  166
+			<nil key="activeLocalization"/>
  167
+			<object class="NSMutableDictionary" key="localizations">
  168
+				<bool key="EncodedWithXMLCoder">YES</bool>
  169
+				<reference key="dict.sortedKeys" ref="0"/>
  170
+				<object class="NSMutableArray" key="dict.values">
  171
+					<bool key="EncodedWithXMLCoder">YES</bool>
  172
+				</object>
  173
+			</object>
  174
+			<nil key="sourceID"/>
  175
+			<int key="maxID">15</int>
  176
+		</object>
  177
+		<object class="IBClassDescriber" key="IBDocument.Classes">
  178
+			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
  179
+				<bool key="EncodedWithXMLCoder">YES</bool>
  180
+				<object class="IBPartialClassDescription">
  181
+					<string key="className">NSObject</string>
  182
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  183
+						<string key="majorKey">IBProjectSource</string>
  184
+						<string key="minorKey">TDDatePickerController.h</string>
  185
+					</object>
  186
+				</object>
  187
+				<object class="IBPartialClassDescription">
  188
+					<string key="className">TDSemiModalAppDelegate</string>
  189
+					<string key="superclassName">NSObject</string>
  190
+					<object class="NSMutableDictionary" key="outlets">
  191
+						<bool key="EncodedWithXMLCoder">YES</bool>
  192
+						<object class="NSArray" key="dict.sortedKeys">
  193
+							<bool key="EncodedWithXMLCoder">YES</bool>
  194
+							<string>viewController</string>
  195
+							<string>window</string>
  196
+						</object>
  197
+						<object class="NSMutableArray" key="dict.values">
  198
+							<bool key="EncodedWithXMLCoder">YES</bool>
  199
+							<string>TDSemiModalDemoViewController</string>
  200
+							<string>UIWindow</string>
  201
+						</object>
  202
+					</object>
  203
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
  204
+						<bool key="EncodedWithXMLCoder">YES</bool>
  205
+						<object class="NSArray" key="dict.sortedKeys">
  206
+							<bool key="EncodedWithXMLCoder">YES</bool>
  207
+							<string>viewController</string>
  208
+							<string>window</string>
  209
+						</object>
  210
+						<object class="NSMutableArray" key="dict.values">
  211
+							<bool key="EncodedWithXMLCoder">YES</bool>
  212
+							<object class="IBToOneOutletInfo">
  213
+								<string key="name">viewController</string>
  214
+								<string key="candidateClassName">TDSemiModalDemoViewController</string>
  215
+							</object>
  216
+							<object class="IBToOneOutletInfo">
  217
+								<string key="name">window</string>
  218
+								<string key="candidateClassName">UIWindow</string>
  219
+							</object>
  220
+						</object>
  221
+					</object>
  222
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  223
+						<string key="majorKey">IBProjectSource</string>
  224
+						<string key="minorKey">Classes/TDSemiModalAppDelegate.h</string>
  225
+					</object>
  226
+				</object>
  227
+				<object class="IBPartialClassDescription">
  228
+					<string key="className">TDSemiModalAppDelegate</string>
  229
+					<string key="superclassName">NSObject</string>
  230
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  231
+						<string key="majorKey">IBUserSource</string>
  232
+						<string key="minorKey"/>
  233
+					</object>
  234
+				</object>
  235
+				<object class="IBPartialClassDescription">
  236
+					<string key="className">TDSemiModalDemoViewController</string>
  237
+					<string key="superclassName">UIViewController</string>
  238
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  239
+						<string key="majorKey">IBProjectSource</string>
  240
+						<string key="minorKey">Classes/TDSemiModalDemoViewController.h</string>
  241
+					</object>
  242
+				</object>
  243
+				<object class="IBPartialClassDescription">
  244
+					<string key="className">UIViewController</string>
  245
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  246
+						<string key="majorKey">IBProjectSource</string>
  247
+						<string key="minorKey">UIViewController+TDSemiModalExtension.h</string>
  248
+					</object>
  249
+				</object>
  250
+				<object class="IBPartialClassDescription">
  251
+					<string key="className">UIWindow</string>
  252
+					<string key="superclassName">UIView</string>
  253
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  254
+						<string key="majorKey">IBUserSource</string>
  255
+						<string key="minorKey"/>
  256
+					</object>
  257
+				</object>
  258
+			</object>
  259
+			<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
  260
+				<bool key="EncodedWithXMLCoder">YES</bool>
  261
+				<object class="IBPartialClassDescription">
  262
+					<string key="className">NSObject</string>
  263
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  264
+						<string key="majorKey">IBFrameworkSource</string>
  265
+						<string key="minorKey">Foundation.framework/Headers/NSError.h</string>
  266
+					</object>
  267
+				</object>
  268
+				<object class="IBPartialClassDescription">
  269
+					<string key="className">NSObject</string>
  270
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  271
+						<string key="majorKey">IBFrameworkSource</string>
  272
+						<string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
  273
+					</object>
  274
+				</object>
  275
+				<object class="IBPartialClassDescription">
  276
+					<string key="className">NSObject</string>
  277
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  278
+						<string key="majorKey">IBFrameworkSource</string>
  279
+						<string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
  280
+					</object>
  281
+				</object>
  282
+				<object class="IBPartialClassDescription">
  283
+					<string key="className">NSObject</string>
  284
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  285
+						<string key="majorKey">IBFrameworkSource</string>
  286
+						<string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
  287
+					</object>
  288
+				</object>
  289
+				<object class="IBPartialClassDescription">
  290
+					<string key="className">NSObject</string>
  291
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  292
+						<string key="majorKey">IBFrameworkSource</string>
  293
+						<string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
  294
+					</object>
  295
+				</object>
  296
+				<object class="IBPartialClassDescription">
  297
+					<string key="className">NSObject</string>
  298
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  299
+						<string key="majorKey">IBFrameworkSource</string>
  300
+						<string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
  301
+					</object>
  302
+				</object>
  303
+				<object class="IBPartialClassDescription">
  304
+					<string key="className">NSObject</string>
  305
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  306
+						<string key="majorKey">IBFrameworkSource</string>
  307
+						<string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
  308
+					</object>
  309
+				</object>
  310
+				<object class="IBPartialClassDescription">
  311
+					<string key="className">NSObject</string>
  312
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  313
+						<string key="majorKey">IBFrameworkSource</string>
  314
+						<string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
  315
+					</object>
  316
+				</object>
  317
+				<object class="IBPartialClassDescription">
  318
+					<string key="className">NSObject</string>
  319
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  320
+						<string key="majorKey">IBFrameworkSource</string>
  321
+						<string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
  322
+					</object>
  323
+				</object>
  324
+				<object class="IBPartialClassDescription">
  325
+					<string key="className">NSObject</string>
  326
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  327
+						<string key="majorKey">IBFrameworkSource</string>
  328
+						<string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
  329
+					</object>
  330
+				</object>
  331
+				<object class="IBPartialClassDescription">
  332
+					<string key="className">NSObject</string>
  333
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  334
+						<string key="majorKey">IBFrameworkSource</string>
  335
+						<string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
  336
+					</object>
  337
+				</object>
  338
+				<object class="IBPartialClassDescription">
  339
+					<string key="className">NSObject</string>
  340
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  341
+						<string key="majorKey">IBFrameworkSource</string>
  342
+						<string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
  343
+					</object>
  344
+				</object>
  345
+				<object class="IBPartialClassDescription">
  346
+					<string key="className">NSObject</string>
  347
+					<object class="IBClassDescriptionSource" key="sourceIdentifier" id="356479594">
  348
+						<string key="majorKey">IBFrameworkSource</string>
  349
+						<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
  350
+					</object>
  351
+				</object>
  352
+				<object class="IBPartialClassDescription">
  353
+					<string key="className">UIApplication</string>
  354
+					<string key="superclassName">UIResponder</string>
  355
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  356
+						<string key="majorKey">IBFrameworkSource</string>
  357
+						<string key="minorKey">UIKit.framework/Headers/UIApplication.h</string>
  358
+					</object>
  359
+				</object>
  360
+				<object class="IBPartialClassDescription">
  361
+					<string key="className">UIResponder</string>
  362
+					<string key="superclassName">NSObject</string>
  363
+					<reference key="sourceIdentifier" ref="356479594"/>
  364
+				</object>
  365
+				<object class="IBPartialClassDescription">
  366
+					<string key="className">UISearchBar</string>
  367
+					<string key="superclassName">UIView</string>
  368
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  369
+						<string key="majorKey">IBFrameworkSource</string>
  370
+						<string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
  371
+					</object>
  372
+				</object>
  373
+				<object class="IBPartialClassDescription">
  374
+					<string key="className">UISearchDisplayController</string>
  375
+					<string key="superclassName">NSObject</string>
  376
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  377
+						<string key="majorKey">IBFrameworkSource</string>
  378
+						<string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
  379
+					</object>
  380
+				</object>
  381
+				<object class="IBPartialClassDescription">
  382
+					<string key="className">UIView</string>
  383
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  384
+						<string key="majorKey">IBFrameworkSource</string>
  385
+						<string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
  386
+					</object>
  387
+				</object>
  388
+				<object class="IBPartialClassDescription">
  389
+					<string key="className">UIView</string>
  390
+					<string key="superclassName">UIResponder</string>
  391
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  392
+						<string key="majorKey">IBFrameworkSource</string>
  393
+						<string key="minorKey">UIKit.framework/Headers/UIView.h</string>
  394
+					</object>
  395
+				</object>
  396
+				<object class="IBPartialClassDescription">
  397
+					<string key="className">UIViewController</string>
  398
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  399
+						<string key="majorKey">IBFrameworkSource</string>
  400
+						<string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
  401
+					</object>
  402
+				</object>
  403
+				<object class="IBPartialClassDescription">
  404
+					<string key="className">UIViewController</string>
  405
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  406
+						<string key="majorKey">IBFrameworkSource</string>
  407
+						<string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
  408
+					</object>
  409
+				</object>
  410
+				<object class="IBPartialClassDescription">
  411
+					<string key="className">UIViewController</string>
  412
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  413
+						<string key="majorKey">IBFrameworkSource</string>
  414
+						<string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
  415
+					</object>
  416
+				</object>
  417
+				<object class="IBPartialClassDescription">
  418
+					<string key="className">UIViewController</string>
  419
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  420
+						<string key="majorKey">IBFrameworkSource</string>
  421
+						<string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
  422
+					</object>
  423
+				</object>
  424
+				<object class="IBPartialClassDescription">
  425
+					<string key="className">UIViewController</string>
  426
+					<string key="superclassName">UIResponder</string>
  427
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  428
+						<string key="majorKey">IBFrameworkSource</string>
  429
+						<string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
  430
+					</object>
  431
+				</object>
  432
+				<object class="IBPartialClassDescription">
  433
+					<string key="className">UIWindow</string>
  434
+					<string key="superclassName">UIView</string>
  435
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  436
+						<string key="majorKey">IBFrameworkSource</string>
  437
+						<string key="minorKey">UIKit.framework/Headers/UIWindow.h</string>
  438
+					</object>
  439
+				</object>
  440
+			</object>
  441
+		</object>
  442
+		<int key="IBDocument.localizationMode">0</int>
  443
+		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
  444
+		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
  445
+			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
  446
+			<integer value="1024" key="NS.object.0"/>
  447
+		</object>
  448
+		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
  449
+			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
  450
+			<integer value="3100" key="NS.object.0"/>
  451
+		</object>
  452
+		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
  453
+		<string key="IBDocument.LastKnownRelativeProjectPath">TDSemiModal.xcodeproj</string>
  454
+		<int key="IBDocument.defaultPropertyAccessControl">3</int>
  455
+		<string key="IBCocoaTouchPluginVersion">123</string>
  456
+	</data>
  457
+</archive>
30  Demo/TDSemiModal-Info.plist
... ...
@@ -0,0 +1,30 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>CFBundleDevelopmentRegion</key>
  6
+	<string>English</string>
  7
+	<key>CFBundleDisplayName</key>
  8
+	<string>${PRODUCT_NAME}</string>
  9
+	<key>CFBundleExecutable</key>
  10
+	<string>${EXECUTABLE_NAME}</string>
  11
+	<key>CFBundleIconFile</key>
  12
+	<string></string>
  13
+	<key>CFBundleIdentifier</key>
  14
+	<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
  15
+	<key>CFBundleInfoDictionaryVersion</key>
  16
+	<string>6.0</string>
  17
+	<key>CFBundleName</key>
  18
+	<string>${PRODUCT_NAME}</string>
  19
+	<key>CFBundlePackageType</key>
  20
+	<string>APPL</string>
  21
+	<key>CFBundleSignature</key>
  22
+	<string>????</string>
  23
+	<key>CFBundleVersion</key>
  24
+	<string>1.0</string>
  25
+	<key>LSRequiresIPhoneOS</key>
  26
+	<true/>
  27
+	<key>NSMainNibFile</key>
  28
+	<string>MainWindow</string>
  29
+</dict>
  30
+</plist>
298  Demo/TDSemiModal.xcodeproj/project.pbxproj
... ...
@@ -0,0 +1,298 @@
  1
+// !$*UTF8*$!
  2
+{
  3
+	archiveVersion = 1;
  4
+	classes = {
  5
+	};
  6
+	objectVersion = 45;
  7
+	objects = {
  8
+
  9
+/* Begin PBXBuildFile section */
  10
+		1D3623260D0F684500981E51 /* TDSemiModalAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* TDSemiModalAppDelegate.m */; };
  11
+		1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
  12
+		1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
  13
+		1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
  14
+		288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
  15
+		2899E5220DE3E06400AC0155 /* TDSemiModalDemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* TDSemiModalDemoViewController.xib */; };
  16
+		28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
  17
+		28D7ACF80DDB3853001CB0EB /* TDSemiModalDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* TDSemiModalDemoViewController.m */; };
  18
+		C2B0B7B2126C30BD004653A9 /* TDDatePickerController.xib in Resources */ = {isa = PBXBuildFile; fileRef = C2B0B7B1126C30BD004653A9 /* TDDatePickerController.xib */; };
  19
+		C2B0B7B6126C30C9004653A9 /* TDDatePickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = C2B0B7B3126C30C9004653A9 /* TDDatePickerController.m */; };
  20
+		C2B0B7B7126C30C9004653A9 /* TDSemiModalViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C2B0B7B4126C30C9004653A9 /* TDSemiModalViewController.m */; };
  21
+		C2B0B7B8126C30C9004653A9 /* UIViewController+TDSemiModalExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = C2B0B7B5126C30C9004653A9 /* UIViewController+TDSemiModalExtension.m */; };
  22
+		C2B0B7C2126C3125004653A9 /* Readme.md in Resources */ = {isa = PBXBuildFile; fileRef = C2B0B7C0126C3125004653A9 /* Readme.md */; };
  23
+		C2B0B7F3126C3307004653A9 /* License.txt in Resources */ = {isa = PBXBuildFile; fileRef = C2B0B7F2126C3307004653A9 /* License.txt */; };
  24
+/* End PBXBuildFile section */
  25
+
  26
+/* Begin PBXFileReference section */
  27
+		1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  28
+		1D3623240D0F684500981E51 /* TDSemiModalAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDSemiModalAppDelegate.h; sourceTree = "<group>"; };
  29
+		1D3623250D0F684500981E51 /* TDSemiModalAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TDSemiModalAppDelegate.m; sourceTree = "<group>"; };
  30
+		1D6058910D05DD3D006BFB54 /* TDSemiModal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TDSemiModal.app; sourceTree = BUILT_PRODUCTS_DIR; };
  31
+		1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  32
+		288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  33
+		2899E5210DE3E06400AC0155 /* TDSemiModalDemoViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TDSemiModalDemoViewController.xib; sourceTree = "<group>"; };
  34
+		28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
  35
+		28D7ACF60DDB3853001CB0EB /* TDSemiModalDemoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDSemiModalDemoViewController.h; sourceTree = "<group>"; };
  36
+		28D7ACF70DDB3853001CB0EB /* TDSemiModalDemoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TDSemiModalDemoViewController.m; sourceTree = "<group>"; };
  37
+		29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  38
+		32CA4F630368D1EE00C91783 /* TDSemiModal_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TDSemiModal_Prefix.pch; sourceTree = "<group>"; };
  39
+		8D1107310486CEB800E47090 /* TDSemiModal-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "TDSemiModal-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
  40
+		C2B0B7B1126C30BD004653A9 /* TDDatePickerController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = TDDatePickerController.xib; path = ../Source/TDDatePickerController.xib; sourceTree = SOURCE_ROOT; };
  41
+		C2B0B7B3126C30C9004653A9 /* TDDatePickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TDDatePickerController.m; path = ../Source/TDDatePickerController.m; sourceTree = SOURCE_ROOT; };
  42
+		C2B0B7B4126C30C9004653A9 /* TDSemiModalViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TDSemiModalViewController.m; path = ../Source/TDSemiModalViewController.m; sourceTree = SOURCE_ROOT; };
  43
+		C2B0B7B5126C30C9004653A9 /* UIViewController+TDSemiModalExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIViewController+TDSemiModalExtension.m"; path = "../Source/UIViewController+TDSemiModalExtension.m"; sourceTree = SOURCE_ROOT; };
  44
+		C2B0B7B9126C30D1004653A9 /* TDDatePickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TDDatePickerController.h; path = ../Source/TDDatePickerController.h; sourceTree = SOURCE_ROOT; };
  45
+		C2B0B7BA126C30D1004653A9 /* TDSemiModal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TDSemiModal.h; path = ../Source/TDSemiModal.h; sourceTree = SOURCE_ROOT; };
  46
+		C2B0B7BB126C30D1004653A9 /* TDSemiModalViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TDSemiModalViewController.h; path = ../Source/TDSemiModalViewController.h; sourceTree = SOURCE_ROOT; };
  47
+		C2B0B7BC126C30D1004653A9 /* UIViewController+TDSemiModalExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIViewController+TDSemiModalExtension.h"; path = "../Source/UIViewController+TDSemiModalExtension.h"; sourceTree = SOURCE_ROOT; };
  48
+		C2B0B7C0126C3125004653A9 /* Readme.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Readme.md; path = ../Readme.md; sourceTree = SOURCE_ROOT; };
  49
+		C2B0B7F2126C3307004653A9 /* License.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = License.txt; path = ../License.txt; sourceTree = SOURCE_ROOT; };
  50
+/* End PBXFileReference section */
  51
+
  52
+/* Begin PBXFrameworksBuildPhase section */
  53
+		1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
  54
+			isa = PBXFrameworksBuildPhase;
  55
+			buildActionMask = 2147483647;
  56
+			files = (
  57
+				1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
  58
+				1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
  59
+				288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
  60
+			);
  61
+			runOnlyForDeploymentPostprocessing = 0;
  62
+		};
  63
+/* End PBXFrameworksBuildPhase section */
  64
+
  65
+/* Begin PBXGroup section */
  66
+		080E96DDFE201D6D7F000001 /* Classes */ = {
  67
+			isa = PBXGroup;
  68
+			children = (
  69
+				1D3623240D0F684500981E51 /* TDSemiModalAppDelegate.h */,
  70
+				1D3623250D0F684500981E51 /* TDSemiModalAppDelegate.m */,
  71
+				28D7ACF60DDB3853001CB0EB /* TDSemiModalDemoViewController.h */,
  72
+				28D7ACF70DDB3853001CB0EB /* TDSemiModalDemoViewController.m */,
  73
+			);
  74
+			path = Classes;
  75
+			sourceTree = "<group>";
  76
+		};
  77
+		19C28FACFE9D520D11CA2CBB /* Products */ = {
  78
+			isa = PBXGroup;
  79
+			children = (
  80
+				1D6058910D05DD3D006BFB54 /* TDSemiModal.app */,
  81
+			);
  82
+			name = Products;
  83
+			sourceTree = "<group>";
  84
+		};
  85
+		29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
  86
+			isa = PBXGroup;
  87
+			children = (
  88
+				C2B0B786126C2EA3004653A9 /* TDSemiModal */,
  89
+				080E96DDFE201D6D7F000001 /* Classes */,
  90
+				29B97315FDCFA39411CA2CEA /* Other Sources */,
  91
+				29B97317FDCFA39411CA2CEA /* Resources */,
  92
+				29B97323FDCFA39411CA2CEA /* Frameworks */,
  93
+				19C28FACFE9D520D11CA2CBB /* Products */,
  94
+			);
  95
+			name = CustomTemplate;
  96
+			sourceTree = "<group>";
  97
+		};
  98
+		29B97315FDCFA39411CA2CEA /* Other Sources */ = {
  99
+			isa = PBXGroup;
  100
+			children = (
  101
+				32CA4F630368D1EE00C91783 /* TDSemiModal_Prefix.pch */,
  102
+				29B97316FDCFA39411CA2CEA /* main.m */,
  103
+			);
  104
+			name = "Other Sources";
  105
+			sourceTree = "<group>";
  106
+		};
  107
+		29B97317FDCFA39411CA2CEA /* Resources */ = {
  108
+			isa = PBXGroup;
  109
+			children = (
  110
+				C2B0B7B1126C30BD004653A9 /* TDDatePickerController.xib */,
  111
+				2899E5210DE3E06400AC0155 /* TDSemiModalDemoViewController.xib */,
  112
+				28AD733E0D9D9553002E5188 /* MainWindow.xib */,
  113
+				8D1107310486CEB800E47090 /* TDSemiModal-Info.plist */,
  114
+			);
  115
+			name = Resources;
  116
+			sourceTree = "<group>";
  117
+		};
  118
+		29B97323FDCFA39411CA2CEA /* Frameworks */ = {
  119
+			isa = PBXGroup;
  120
+			children = (
  121
+				1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
  122
+				1D30AB110D05D00D00671497 /* Foundation.framework */,
  123
+				288765A40DF7441C002DB57D /* CoreGraphics.framework */,
  124
+			);
  125
+			name = Frameworks;
  126
+			sourceTree = "<group>";
  127
+		};
  128
+		C2B0B786126C2EA3004653A9 /* TDSemiModal */ = {
  129
+			isa = PBXGroup;
  130
+			children = (
  131
+				C2B0B7BA126C30D1004653A9 /* TDSemiModal.h */,
  132
+				C2B0B7BB126C30D1004653A9 /* TDSemiModalViewController.h */,
  133
+				C2B0B7B9126C30D1004653A9 /* TDDatePickerController.h */,
  134
+				C2B0B7BC126C30D1004653A9 /* UIViewController+TDSemiModalExtension.h */,
  135
+				C2B0B7B4126C30C9004653A9 /* TDSemiModalViewController.m */,
  136
+				C2B0B7B5126C30C9004653A9 /* UIViewController+TDSemiModalExtension.m */,
  137
+				C2B0B7B3126C30C9004653A9 /* TDDatePickerController.m */,
  138
+				C2B0B7C0126C3125004653A9 /* Readme.md */,
  139
+				C2B0B7F2126C3307004653A9 /* License.txt */,
  140
+			);
  141
+			name = TDSemiModal;
  142
+			sourceTree = "<group>";
  143
+		};
  144
+/* End PBXGroup section */
  145
+
  146
+/* Begin PBXNativeTarget section */
  147
+		1D6058900D05DD3D006BFB54 /* TDSemiModal */ = {
  148
+			isa = PBXNativeTarget;
  149
+			buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "TDSemiModal" */;
  150
+			buildPhases = (
  151
+				1D60588D0D05DD3D006BFB54 /* Resources */,
  152
+				1D60588E0D05DD3D006BFB54 /* Sources */,
  153
+				1D60588F0D05DD3D006BFB54 /* Frameworks */,
  154
+			);
  155
+			buildRules = (
  156
+			);
  157
+			dependencies = (
  158
+			);
  159
+			name = TDSemiModal;
  160
+			productName = TDSemiModal;
  161
+			productReference = 1D6058910D05DD3D006BFB54 /* TDSemiModal.app */;
  162
+			productType = "com.apple.product-type.application";
  163
+		};
  164
+/* End PBXNativeTarget section */
  165
+
  166
+/* Begin PBXProject section */
  167
+		29B97313FDCFA39411CA2CEA /* Project object */ = {
  168
+			isa = PBXProject;
  169
+			buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "TDSemiModal" */;
  170
+			compatibilityVersion = "Xcode 3.1";
  171
+			developmentRegion = English;
  172
+			hasScannedForEncodings = 1;
  173
+			knownRegions = (
  174
+				English,
  175
+				Japanese,
  176
+				French,
  177
+				German,
  178
+			);
  179
+			mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
  180
+			projectDirPath = "";
  181
+			projectRoot = "";
  182
+			targets = (
  183
+				1D6058900D05DD3D006BFB54 /* TDSemiModal */,
  184
+			);
  185
+		};
  186
+/* End PBXProject section */
  187
+
  188
+/* Begin PBXResourcesBuildPhase section */
  189
+		1D60588D0D05DD3D006BFB54 /* Resources */ = {
  190
+			isa = PBXResourcesBuildPhase;
  191
+			buildActionMask = 2147483647;
  192
+			files = (
  193
+				28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
  194
+				2899E5220DE3E06400AC0155 /* TDSemiModalDemoViewController.xib in Resources */,
  195
+				C2B0B7B2126C30BD004653A9 /* TDDatePickerController.xib in Resources */,
  196
+				C2B0B7C2126C3125004653A9 /* Readme.md in Resources */,
  197
+				C2B0B7F3126C3307004653A9 /* License.txt in Resources */,
  198
+			);
  199
+			runOnlyForDeploymentPostprocessing = 0;
  200
+		};
  201
+/* End PBXResourcesBuildPhase section */
  202
+
  203
+/* Begin PBXSourcesBuildPhase section */
  204
+		1D60588E0D05DD3D006BFB54 /* Sources */ = {
  205
+			isa = PBXSourcesBuildPhase;
  206
+			buildActionMask = 2147483647;
  207
+			files = (
  208
+				1D60589B0D05DD56006BFB54 /* main.m in Sources */,
  209
+				1D3623260D0F684500981E51 /* TDSemiModalAppDelegate.m in Sources */,
  210
+				28D7ACF80DDB3853001CB0EB /* TDSemiModalDemoViewController.m in Sources */,
  211
+				C2B0B7B6126C30C9004653A9 /* TDDatePickerController.m in Sources */,
  212
+				C2B0B7B7126C30C9004653A9 /* TDSemiModalViewController.m in Sources */,
  213
+				C2B0B7B8126C30C9004653A9 /* UIViewController+TDSemiModalExtension.m in Sources */,
  214
+			);
  215
+			runOnlyForDeploymentPostprocessing = 0;
  216
+		};
  217
+/* End PBXSourcesBuildPhase section */
  218
+
  219
+/* Begin XCBuildConfiguration section */
  220
+		1D6058940D05DD3E006BFB54 /* Debug */ = {
  221
+			isa = XCBuildConfiguration;
  222
+			buildSettings = {
  223
+				ALWAYS_SEARCH_USER_PATHS = NO;
  224
+				COPY_PHASE_STRIP = NO;
  225
+				GCC_DYNAMIC_NO_PIC = NO;
  226
+				GCC_OPTIMIZATION_LEVEL = 0;
  227
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
  228
+				GCC_PREFIX_HEADER = TDSemiModal_Prefix.pch;
  229
+				INFOPLIST_FILE = "TDSemiModal-Info.plist";
  230
+				PRODUCT_NAME = TDSemiModal;
  231
+			};
  232
+			name = Debug;
  233
+		};
  234
+		1D6058950D05DD3E006BFB54 /* Release */ = {
  235
+			isa = XCBuildConfiguration;
  236
+			buildSettings = {
  237
+				ALWAYS_SEARCH_USER_PATHS = NO;
  238
+				COPY_PHASE_STRIP = YES;
  239
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
  240
+				GCC_PREFIX_HEADER = TDSemiModal_Prefix.pch;
  241
+				INFOPLIST_FILE = "TDSemiModal-Info.plist";
  242
+				PRODUCT_NAME = TDSemiModal;
  243
+				VALIDATE_PRODUCT = YES;
  244
+			};
  245
+			name = Release;
  246
+		};
  247
+		C01FCF4F08A954540054247B /* Debug */ = {
  248
+			isa = XCBuildConfiguration;
  249
+			buildSettings = {
  250
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  251
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  252
+				GCC_C_LANGUAGE_STANDARD = c99;
  253
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
  254
+				GCC_WARN_UNUSED_VARIABLE = YES;
  255
+				PREBINDING = NO;
  256
+				SDKROOT = iphoneos4.1;
  257
+			};
  258
+			name = Debug;
  259
+		};
  260
+		C01FCF5008A954540054247B /* Release */ = {
  261
+			isa = XCBuildConfiguration;
  262
+			buildSettings = {
  263
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  264
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  265
+				GCC_C_LANGUAGE_STANDARD = c99;
  266
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
  267
+				GCC_WARN_UNUSED_VARIABLE = YES;
  268
+				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
  269
+				PREBINDING = NO;
  270
+				SDKROOT = iphoneos4.1;
  271
+			};
  272
+			name = Release;
  273
+		};
  274
+/* End XCBuildConfiguration section */
  275
+
  276
+/* Begin XCConfigurationList section */
  277
+		1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "TDSemiModal" */ = {
  278
+			isa = XCConfigurationList;
  279
+			buildConfigurations = (
  280
+				1D6058940D05DD3E006BFB54 /* Debug */,
  281
+				1D6058950D05DD3E006BFB54 /* Release */,
  282
+			);
  283
+			defaultConfigurationIsVisible = 0;
  284
+			defaultConfigurationName = Release;
  285
+		};
  286
+		C01FCF4E08A954540054247B /* Build configuration list for PBXProject "TDSemiModal" */ = {
  287
+			isa = XCConfigurationList;
  288
+			buildConfigurations = (
  289
+				C01FCF4F08A954540054247B /* Debug */,
  290
+				C01FCF5008A954540054247B /* Release */,
  291
+			);
  292
+			defaultConfigurationIsVisible = 0;
  293
+			defaultConfigurationName = Release;
  294
+		};
  295
+/* End XCConfigurationList section */
  296
+	};
  297
+	rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
  298
+}
560  Demo/TDSemiModalDemoViewController.xib
... ...
@@ -0,0 +1,560 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
  3
+	<data>
  4
+		<int key="IBDocument.SystemTarget">1024</int>
  5
+		<string key="IBDocument.SystemVersion">10F569</string>
  6
+		<string key="IBDocument.InterfaceBuilderVersion">804</string>
  7
+		<string key="IBDocument.AppKitVersion">1038.29</string>
  8
+		<string key="IBDocument.HIToolboxVersion">461.00</string>
  9
+		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
  10
+			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  11
+			<string key="NS.object.0">123</string>
  12
+		</object>
  13
+		<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
  14
+			<bool key="EncodedWithXMLCoder">YES</bool>
  15
+			<integer value="6"/>
  16
+		</object>
  17
+		<object class="NSArray" key="IBDocument.PluginDependencies">
  18
+			<bool key="EncodedWithXMLCoder">YES</bool>
  19
+			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
  20
+		</object>
  21
+		<object class="NSMutableDictionary" key="IBDocument.Metadata">
  22
+			<bool key="EncodedWithXMLCoder">YES</bool>
  23
+			<object class="NSArray" key="dict.sortedKeys" id="0">
  24
+				<bool key="EncodedWithXMLCoder">YES</bool>
  25
+			</object>
  26
+			<object class="NSMutableArray" key="dict.values">
  27
+				<bool key="EncodedWithXMLCoder">YES</bool>
  28
+			</object>
  29
+		</object>
  30
+		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
  31
+			<bool key="EncodedWithXMLCoder">YES</bool>
  32
+			<object class="IBProxyObject" id="372490531">
  33
+				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
  34
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  35
+			</object>
  36
+			<object class="IBProxyObject" id="843779117">
  37
+				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
  38
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  39
+			</object>
  40
+			<object class="IBUIView" id="774585933">
  41
+				<reference key="NSNextResponder"/>
  42
+				<int key="NSvFlags">274</int>
  43
+				<object class="NSMutableArray" key="NSSubviews">
  44
+					<bool key="EncodedWithXMLCoder">YES</bool>
  45
+					<object class="IBUIButton" id="677004754">
  46
+						<reference key="NSNextResponder" ref="774585933"/>
  47
+						<int key="NSvFlags">292</int>
  48
+						<string key="NSFrame">{{52, 53}, {213, 37}}</string>
  49
+						<reference key="NSSuperview" ref="774585933"/>
  50
+						<bool key="IBUIOpaque">NO</bool>
  51
+						<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  52
+						<int key="IBUIContentHorizontalAlignment">0</int>
  53
+						<int key="IBUIContentVerticalAlignment">0</int>
  54
+						<object class="NSFont" key="IBUIFont">
  55
+							<string key="NSName">Helvetica-Bold</string>
  56
+							<double key="NSSize">15</double>
  57
+							<int key="NSfFlags">16</int>
  58
+						</object>
  59
+						<int key="IBUIButtonType">1</int>
  60
+						<string key="IBUINormalTitle">click to select date</string>
  61
+						<object class="NSColor" key="IBUIHighlightedTitleColor">
  62
+							<int key="NSColorSpace">3</int>
  63
+							<bytes key="NSWhite">MQA</bytes>
  64
+						</object>
  65
+						<object class="NSColor" key="IBUINormalTitleColor">
  66
+							<int key="NSColorSpace">1</int>
  67
+							<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
  68
+						</object>
  69
+						<object class="NSColor" key="IBUINormalTitleShadowColor">
  70
+							<int key="NSColorSpace">3</int>
  71
+							<bytes key="NSWhite">MC41AA</bytes>
  72
+						</object>
  73
+					</object>
  74
+				</object>
  75
+				<string key="NSFrameSize">{320, 460}</string>
  76
+				<reference key="NSSuperview"/>
  77
+				<object class="NSColor" key="IBUIBackgroundColor">
  78
+					<int key="NSColorSpace">3</int>
  79
+					<bytes key="NSWhite">MC43NQA</bytes>
  80
+					<object class="NSColorSpace" key="NSCustomColorSpace">
  81
+						<int key="NSID">2</int>
  82
+					</object>
  83
+				</object>
  84
+				<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
  85
+				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
  86
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  87
+			</object>
  88
+			<object class="IBUIViewController" id="914974647">
  89
+				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
  90
+				<object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
  91
+					<int key="interfaceOrientation">1</int>
  92
+				</object>
  93
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
  94
+				<bool key="IBUIHorizontal">NO</bool>
  95
+			</object>
  96
+		</object>
  97
+		<object class="IBObjectContainer" key="IBDocument.Objects">
  98
+			<object class="NSMutableArray" key="connectionRecords">
  99
+				<bool key="EncodedWithXMLCoder">YES</bool>
  100
+				<object class="IBConnectionRecord">
  101
+					<object class="IBCocoaTouchOutletConnection" key="connection">
  102
+						<string key="label">view</string>
  103
+						<reference key="source" ref="372490531"/>
  104
+						<reference key="destination" ref="774585933"/>
  105
+					</object>
  106
+					<int key="connectionID">7</int>
  107
+				</object>
  108
+				<object class="IBConnectionRecord">
  109
+					<object class="IBCocoaTouchEventConnection" key="connection">
  110
+						<string key="label">dateButtonClicked:</string>
  111
+						<reference key="source" ref="677004754"/>
  112
+						<reference key="destination" ref="372490531"/>
  113
+						<int key="IBEventType">1</int>
  114
+					</object>
  115
+					<int key="connectionID">9</int>