diff --git a/SimpleNotes.xcodeproj/project.pbxproj b/SimpleNotes.xcodeproj/project.pbxproj index c4c896e..ad6e86e 100644 --- a/SimpleNotes.xcodeproj/project.pbxproj +++ b/SimpleNotes.xcodeproj/project.pbxproj @@ -24,6 +24,7 @@ 1F42EFE819097ED100B91F5B /* PSRMasterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F42EFE719097ED100B91F5B /* PSRMasterViewController.m */; }; 1F42EFEB190989DC00B91F5B /* PSRDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F42EFEA190989DC00B91F5B /* PSRDetailViewController.m */; }; 1F876B9D19165105009DA0BB /* yoda.png in Resources */ = {isa = PBXBuildFile; fileRef = 1F876B9C19165105009DA0BB /* yoda.png */; }; + 30EB7FB419D6F7EB0093795D /* main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 30EB7FB319D6F7EB0093795D /* main.storyboard */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -62,6 +63,7 @@ 1F42EFE9190989DC00B91F5B /* PSRDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PSRDetailViewController.h; sourceTree = ""; }; 1F42EFEA190989DC00B91F5B /* PSRDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PSRDetailViewController.m; sourceTree = ""; }; 1F876B9C19165105009DA0BB /* yoda.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = yoda.png; sourceTree = ""; }; + 30EB7FB319D6F7EB0093795D /* main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = main.storyboard; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -125,6 +127,7 @@ 1F42EFC0190978A700B91F5B /* PSRAppDelegate.m */, 1F42EFE619097ED100B91F5B /* PSRMasterViewController.h */, 1F42EFE719097ED100B91F5B /* PSRMasterViewController.m */, + 30EB7FB319D6F7EB0093795D /* main.storyboard */, 1F42EFE9190989DC00B91F5B /* PSRDetailViewController.h */, 1F42EFEA190989DC00B91F5B /* PSRDetailViewController.m */, 1F876B9C19165105009DA0BB /* yoda.png */, @@ -254,6 +257,7 @@ 1F876B9D19165105009DA0BB /* yoda.png in Resources */, 1F42EFBB190978A700B91F5B /* InfoPlist.strings in Resources */, 1F42EFC3190978A700B91F5B /* Images.xcassets in Resources */, + 30EB7FB419D6F7EB0093795D /* main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -397,6 +401,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "SimpleNotes/SimpleNotes-Prefix.pch"; INFOPLIST_FILE = "SimpleNotes/SimpleNotes-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; @@ -410,6 +415,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "SimpleNotes/SimpleNotes-Prefix.pch"; INFOPLIST_FILE = "SimpleNotes/SimpleNotes-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; diff --git a/SimpleNotes/PSRAppDelegate.m b/SimpleNotes/PSRAppDelegate.m index dcbb21e..6c93859 100644 --- a/SimpleNotes/PSRAppDelegate.m +++ b/SimpleNotes/PSRAppDelegate.m @@ -14,17 +14,19 @@ @implementation PSRAppDelegate - (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]; - +*/ [[PSRNoteManager sharedManager] loadFromFile]; - +/* PSRMasterViewController *masterVC = [[PSRMasterViewController alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:masterVC]; self.window.rootViewController = navigationController; [self.window makeKeyAndVisible]; + */ return YES; } diff --git a/SimpleNotes/PSRDetailViewController.m b/SimpleNotes/PSRDetailViewController.m index bd286d2..ee14843 100644 --- a/SimpleNotes/PSRDetailViewController.m +++ b/SimpleNotes/PSRDetailViewController.m @@ -28,6 +28,8 @@ - (void)viewDidLoad { UIBarButtonItem *cancelButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel)]; self.navigationItem.rightBarButtonItem = cancelButton; + + } - (void)cancel { diff --git a/SimpleNotes/SimpleNotes-Info.plist b/SimpleNotes/SimpleNotes-Info.plist index 4edabad..367c814 100644 --- a/SimpleNotes/SimpleNotes-Info.plist +++ b/SimpleNotes/SimpleNotes-Info.plist @@ -24,6 +24,8 @@ 1.0 LSRequiresIPhoneOS + UIMainStoryboardFile + main UIRequiredDeviceCapabilities armv7 @@ -31,8 +33,6 @@ UISupportedInterfaceOrientations UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight diff --git a/SimpleNotes/main.storyboard b/SimpleNotes/main.storyboard new file mode 100644 index 0000000..c1f7414 --- /dev/null +++ b/SimpleNotes/main.storyboard @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file