diff --git a/ChangingBackground.xcodeproj/project.pbxproj b/ChangingBackground.xcodeproj/project.pbxproj index 2e16be1..d028f57 100644 --- a/ChangingBackground.xcodeproj/project.pbxproj +++ b/ChangingBackground.xcodeproj/project.pbxproj @@ -17,13 +17,14 @@ 001809CD171C637E002D3E93 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 001809CC171C637E002D3E93 /* Default@2x.png */; }; 001809CF171C637E002D3E93 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 001809CE171C637E002D3E93 /* Default-568h@2x.png */; }; 001809D9171C6448002D3E93 /* FirstViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 001809D7171C6448002D3E93 /* FirstViewController.m */; }; - 001809DA171C6448002D3E93 /* FirstViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 001809D8171C6448002D3E93 /* FirstViewController.xib */; }; 001809E0171C64E4002D3E93 /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 001809DE171C64E3002D3E93 /* SecondViewController.m */; }; - 001809E1171C64E4002D3E93 /* SecondViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 001809DF171C64E3002D3E93 /* SecondViewController.xib */; }; 001809EB171C6764002D3E93 /* blue.png in Resources */ = {isa = PBXBuildFile; fileRef = 001809E7171C6764002D3E93 /* blue.png */; }; 001809EC171C6764002D3E93 /* blue@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 001809E8171C6764002D3E93 /* blue@2x.png */; }; 001809ED171C6764002D3E93 /* green.png in Resources */ = {isa = PBXBuildFile; fileRef = 001809E9171C6764002D3E93 /* green.png */; }; 001809EE171C6764002D3E93 /* green@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 001809EA171C6764002D3E93 /* green@2x.png */; }; + 5D7EB6A31954A76900AD7E76 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D7EB6A21954A76900AD7E76 /* MainStoryboard.storyboard */; }; + 5D7EB6A91954ADF300AD7E76 /* AEMCollectionVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D7EB6A81954ADF300AD7E76 /* AEMCollectionVC.m */; }; + 5D7EB6AC1954AE3800AD7E76 /* AEMViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D7EB6AB1954AE3800AD7E76 /* AEMViewController.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -42,14 +43,17 @@ 001809CE171C637E002D3E93 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 001809D6171C6448002D3E93 /* FirstViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FirstViewController.h; sourceTree = ""; }; 001809D7171C6448002D3E93 /* FirstViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FirstViewController.m; sourceTree = ""; }; - 001809D8171C6448002D3E93 /* FirstViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FirstViewController.xib; sourceTree = ""; }; 001809DD171C64E3002D3E93 /* SecondViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = ""; }; 001809DE171C64E3002D3E93 /* SecondViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = ""; }; - 001809DF171C64E3002D3E93 /* SecondViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SecondViewController.xib; sourceTree = ""; }; 001809E7171C6764002D3E93 /* blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = blue.png; sourceTree = ""; }; 001809E8171C6764002D3E93 /* blue@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "blue@2x.png"; sourceTree = ""; }; 001809E9171C6764002D3E93 /* green.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = green.png; sourceTree = ""; }; 001809EA171C6764002D3E93 /* green@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "green@2x.png"; sourceTree = ""; }; + 5D7EB6A21954A76900AD7E76 /* MainStoryboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = MainStoryboard.storyboard; sourceTree = ""; }; + 5D7EB6A71954ADF300AD7E76 /* AEMCollectionVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEMCollectionVC.h; sourceTree = ""; }; + 5D7EB6A81954ADF300AD7E76 /* AEMCollectionVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AEMCollectionVC.m; sourceTree = ""; }; + 5D7EB6AA1954AE3800AD7E76 /* AEMViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AEMViewController.h; sourceTree = ""; }; + 5D7EB6AB1954AE3800AD7E76 /* AEMViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AEMViewController.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -69,6 +73,7 @@ 001809AC171C637E002D3E93 = { isa = PBXGroup; children = ( + 5D7EB6A21954A76900AD7E76 /* MainStoryboard.storyboard */, 001809BE171C637E002D3E93 /* ChangingBackground */, 001809B7171C637E002D3E93 /* Frameworks */, 001809B6171C637E002D3E93 /* Products */, @@ -132,7 +137,6 @@ children = ( 001809D6171C6448002D3E93 /* FirstViewController.h */, 001809D7171C6448002D3E93 /* FirstViewController.m */, - 001809D8171C6448002D3E93 /* FirstViewController.xib */, ); name = FirstViewController; sourceTree = ""; @@ -142,6 +146,10 @@ children = ( 001809DB171C644A002D3E93 /* FirstViewController */, 001809E2171C650E002D3E93 /* SecondViewController */, + 5D7EB6A71954ADF300AD7E76 /* AEMCollectionVC.h */, + 5D7EB6A81954ADF300AD7E76 /* AEMCollectionVC.m */, + 5D7EB6AA1954AE3800AD7E76 /* AEMViewController.h */, + 5D7EB6AB1954AE3800AD7E76 /* AEMViewController.m */, ); name = ViewControllers; sourceTree = ""; @@ -151,7 +159,6 @@ children = ( 001809DD171C64E3002D3E93 /* SecondViewController.h */, 001809DE171C64E3002D3E93 /* SecondViewController.m */, - 001809DF171C64E3002D3E93 /* SecondViewController.xib */, ); name = SecondViewController; sourceTree = ""; @@ -219,11 +226,10 @@ buildActionMask = 2147483647; files = ( 001809C3171C637E002D3E93 /* InfoPlist.strings in Resources */, + 5D7EB6A31954A76900AD7E76 /* MainStoryboard.storyboard in Resources */, 001809CB171C637E002D3E93 /* Default.png in Resources */, 001809CD171C637E002D3E93 /* Default@2x.png in Resources */, 001809CF171C637E002D3E93 /* Default-568h@2x.png in Resources */, - 001809DA171C6448002D3E93 /* FirstViewController.xib in Resources */, - 001809E1171C64E4002D3E93 /* SecondViewController.xib in Resources */, 001809EB171C6764002D3E93 /* blue.png in Resources */, 001809EC171C6764002D3E93 /* blue@2x.png in Resources */, 001809ED171C6764002D3E93 /* green.png in Resources */, @@ -238,9 +244,11 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 5D7EB6A91954ADF300AD7E76 /* AEMCollectionVC.m in Sources */, 001809C5171C637E002D3E93 /* main.m in Sources */, 001809C9171C637E002D3E93 /* AppDelegate.m in Sources */, 001809D9171C6448002D3E93 /* FirstViewController.m in Sources */, + 5D7EB6AC1954AE3800AD7E76 /* AEMViewController.m in Sources */, 001809E0171C64E4002D3E93 /* SecondViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -356,6 +364,7 @@ 001809D4171C637E002D3E93 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/ChangingBackground/AEMCollectionVC.h b/ChangingBackground/AEMCollectionVC.h new file mode 100644 index 0000000..f6f4369 --- /dev/null +++ b/ChangingBackground/AEMCollectionVC.h @@ -0,0 +1,22 @@ +// +// AEMCollectionVC.h +// ChangingBackground +// +// Created by Arthur Mayes on 6/20/14. +// Copyright (c) 2014 Ora Interactive. All rights reserved. +// + +#import + +@protocol AEMCollectionVCDelegate + +- (void)didGoToFirst; +- (void)didGoToSecond; + +@end + +@interface AEMCollectionVC : UICollectionViewController + +@property (nonatomic, weak) id delegate; + +@end diff --git a/ChangingBackground/AEMCollectionVC.m b/ChangingBackground/AEMCollectionVC.m new file mode 100644 index 0000000..87c2203 --- /dev/null +++ b/ChangingBackground/AEMCollectionVC.m @@ -0,0 +1,89 @@ +// +// AEMCollectionVC.m +// ChangingBackground +// +// Created by Arthur Mayes on 6/20/14. +// Copyright (c) 2014 Ora Interactive. All rights reserved. +// + +#import "AEMCollectionVC.h" +#import "FirstViewController.h" +#import "SecondViewController.h" + +@interface AEMCollectionVC () + +@property (nonatomic, weak) FirstViewController *firstViewController; +@property (nonatomic, weak) SecondViewController *secondViewController; + +@end + +@implementation AEMCollectionVC + +#pragma mark - Lazy Instantiation + +- (FirstViewController *)firstViewController +{ + if (!_firstViewController) { + _firstViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"First"]; + _firstViewController.delegate = self; + [_firstViewController willMoveToParentViewController:self]; + [self addChildViewController:_firstViewController]; + } + return _firstViewController; +} + +- (SecondViewController *)secondViewController +{ + if (!_secondViewController) { + _secondViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"Second"]; + _secondViewController.delegate = self; + [_secondViewController willMoveToParentViewController:self]; + [self addChildViewController:_secondViewController]; + } + return _secondViewController; +} + +#pragma mark - Delegate Methods + +- (void)segueToFirst +{ + NSIndexPath *indexPath = [NSIndexPath indexPathForItem:0 inSection:0]; + [self.collectionView scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally animated:YES]; + if ([self.delegate respondsToSelector:@selector(didGoToFirst)]) { + [self.delegate didGoToFirst]; + } +} + +- (void)segueToSecond +{ + NSIndexPath *indexPath = [NSIndexPath indexPathForItem:1 inSection:0]; + [self.collectionView scrollToItemAtIndexPath:indexPath atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally animated:YES]; + if ([self.delegate respondsToSelector:@selector(didGoToSecond)]) { + [self.delegate didGoToSecond]; + } +} + +#pragma mark - UICollectionView Delegate/DataSource + +-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section +{ + return 2; +} + +-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath +{ + UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath]; + + NSArray *array = @[@"firstViewController", @"secondViewController"]; + + UIViewController *viewController = [self valueForKey:array[indexPath.item]]; + + [cell.contentView addSubview:viewController.view]; + + // There would be some additional work to do here if there were more than two VCs + // But I would have used a navigation controller if there were more than two VCs + + return cell; +} + +@end diff --git a/ChangingBackground/AEMViewController.h b/ChangingBackground/AEMViewController.h new file mode 100644 index 0000000..778f067 --- /dev/null +++ b/ChangingBackground/AEMViewController.h @@ -0,0 +1,13 @@ +// +// AEMViewController.h +// ChangingBackground +// +// Created by Arthur Mayes on 6/20/14. +// Copyright (c) 2014 Ora Interactive. All rights reserved. +// + +#import + +@interface AEMViewController : UIViewController + +@end diff --git a/ChangingBackground/AEMViewController.m b/ChangingBackground/AEMViewController.m new file mode 100644 index 0000000..3ff4dfb --- /dev/null +++ b/ChangingBackground/AEMViewController.m @@ -0,0 +1,74 @@ +// +// AEMViewController.m +// ChangingBackground +// +// Created by Arthur Mayes on 6/20/14. +// Copyright (c) 2014 Ora Interactive. All rights reserved. +// + +#import "AEMViewController.h" +#import "AEMCollectionVC.h" + +@interface AEMViewController () +@property (weak, nonatomic) IBOutlet UIImageView *protectiveView; +@property (weak, nonatomic) IBOutlet UIImageView *blueImageView; +@property (weak, nonatomic) IBOutlet UIImageView *greenImageView; + +@end + +@implementation AEMViewController + +#pragma mark - View Life Cycle + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [self.protectiveView setImage:[UIImage imageNamed:@"blue"]]; + [self.blueImageView setImage:[UIImage imageNamed:@"blue"]]; + [self.greenImageView setImage:[UIImage imageNamed:@"green"]]; +} + +#pragma mark - Background Animations + +- (void)didGoToFirst +{ + // Protective view is in case of quick-fire button tapping + [self.protectiveView setImage:[UIImage imageNamed:@"green"]]; + [self.blueImageView setAlpha:0.0]; + [self.view sendSubviewToBack:self.greenImageView]; + [self.view sendSubviewToBack:self.protectiveView]; + + // Not using weakSelf here, because this is the rootVC + [UIView animateWithDuration:0.7 delay:0.2 options:UIViewAnimationOptionCurveEaseIn animations:^{ + [self.blueImageView setAlpha:1.0f]; + } completion:nil]; + +} + +- (void)didGoToSecond +{ + // Protective view is in case of quick-fire button tapping + [self.protectiveView setImage:[UIImage imageNamed:@"blue"]]; + [self.greenImageView setAlpha:0.0]; + [self.view sendSubviewToBack:self.blueImageView]; + [self.view sendSubviewToBack:self.protectiveView]; + + // Not using weakSelf here, because this is the rootVC + [UIView animateWithDuration:0.7 delay:0.2 options:UIViewAnimationOptionCurveEaseIn animations:^{ + [self.greenImageView setAlpha:1.0f]; + } completion:nil]; + +} + +#pragma mark - Navigation + +// In a storyboard-based application, you will often want to do a little preparation before navigation +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:@"toCollection"]) { + AEMCollectionVC *collectionVC = (AEMCollectionVC *)[segue destinationViewController]; + collectionVC.delegate = self; + } +} + +@end diff --git a/ChangingBackground/AppDelegate.h b/ChangingBackground/AppDelegate.h index f96be1d..8c75452 100644 --- a/ChangingBackground/AppDelegate.h +++ b/ChangingBackground/AppDelegate.h @@ -10,4 +10,6 @@ @interface AppDelegate : UIResponder +@property (strong, nonatomic) UIWindow *window; + @end diff --git a/ChangingBackground/AppDelegate.m b/ChangingBackground/AppDelegate.m index 9538cc1..9adf4df 100644 --- a/ChangingBackground/AppDelegate.m +++ b/ChangingBackground/AppDelegate.m @@ -9,23 +9,14 @@ #import "AppDelegate.h" #import "FirstViewController.h" -@interface AppDelegate () { - UIWindow *window; -} +@interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - window = [UIWindow.alloc initWithFrame:UIScreen.mainScreen.bounds]; - [window makeKeyAndVisible]; - FirstViewController *firstViewController = FirstViewController.new; - UINavigationController *navigationController = [UINavigationController.alloc initWithRootViewController:firstViewController]; - [navigationController setNavigationBarHidden:YES]; - - window.rootViewController = navigationController; return YES; } diff --git a/ChangingBackground/ChangingBackground-Info.plist b/ChangingBackground/ChangingBackground-Info.plist index bab2011..382ea42 100644 --- a/ChangingBackground/ChangingBackground-Info.plist +++ b/ChangingBackground/ChangingBackground-Info.plist @@ -24,6 +24,8 @@ 1.0 LSRequiresIPhoneOS + UIMainStoryboardFile + MainStoryboard UIRequiredDeviceCapabilities armv7 @@ -31,8 +33,6 @@ UISupportedInterfaceOrientations UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight diff --git a/ChangingBackground/FirstViewController.h b/ChangingBackground/FirstViewController.h index a2fae46..77c9263 100644 --- a/ChangingBackground/FirstViewController.h +++ b/ChangingBackground/FirstViewController.h @@ -8,8 +8,17 @@ #import +@protocol FirstViewControllerDelegate + +@optional +- (void)segueToSecond; + +@end + @interface FirstViewController : UIViewController +@property (nonatomic, weak) id delegate; + - (IBAction)goForwardButtonPressed; @end diff --git a/ChangingBackground/FirstViewController.m b/ChangingBackground/FirstViewController.m index 8aedb68..9239e44 100644 --- a/ChangingBackground/FirstViewController.m +++ b/ChangingBackground/FirstViewController.m @@ -15,9 +15,11 @@ @interface FirstViewController () @implementation FirstViewController -- (IBAction)goForwardButtonPressed { - SecondViewController *secondViewController = SecondViewController.new; - [self.navigationController pushViewController:secondViewController animated:YES]; +- (IBAction)goForwardButtonPressed +{ + if ([self.delegate respondsToSelector:@selector(segueToSecond)]) { + [self.delegate segueToSecond]; + } } @end diff --git a/ChangingBackground/FirstViewController.xib b/ChangingBackground/FirstViewController.xib deleted file mode 100644 index 0dd58c2..0000000 --- a/ChangingBackground/FirstViewController.xib +++ /dev/null @@ -1,217 +0,0 @@ - - - - 1552 - 12C3006 - 3084 - 1187.34 - 625.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 2083 - - - IBProxyObject - IBUIButton - IBUILabel - IBUIView - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 274 - - - - 292 - {{77, 115}, {166, 21}} - - - _NS:9 - NO - YES - 7 - NO - IBCocoaTouchFramework - Home View Controller - - 1 - MCAwIDAAA - darkTextColor - - - 0 - - 1 - 17 - - - Helvetica - 17 - 16 - - NO - - - - 292 - {{102, 180}, {109, 44}} - - _NS:9 - NO - IBCocoaTouchFramework - 0 - 0 - 1 - Go Forward - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - 2 - 15 - - - Helvetica-Bold - 15 - 16 - - - - {{0, 20}, {320, 548}} - - - 3 - MQA - - 2 - - - - - IBUIScreenMetrics - - YES - - - - - - {320, 568} - {568, 320} - - - IBCocoaTouchFramework - Retina 4 Full Screen - 2 - - IBCocoaTouchFramework - - - - - - - view - - - - 3 - - - - goForwardButtonPressed - - - 7 - - 8 - - - - - - 0 - - - - - - 1 - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 4 - - - - - 7 - - - - - - - FirstViewController - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - - - 8 - - - 0 - IBCocoaTouchFramework - YES - 3 - 2083 - - diff --git a/ChangingBackground/SecondViewController.h b/ChangingBackground/SecondViewController.h index 9ded32e..7689039 100644 --- a/ChangingBackground/SecondViewController.h +++ b/ChangingBackground/SecondViewController.h @@ -8,8 +8,17 @@ #import +@protocol SecondViewControllerDelegate + +@optional +- (void)segueToFirst; + +@end + @interface SecondViewController : UIViewController +@property (nonatomic, weak) id delegate; + - (IBAction)goBackButtonPressed; @end diff --git a/ChangingBackground/SecondViewController.m b/ChangingBackground/SecondViewController.m index 028f811..e2bd69e 100644 --- a/ChangingBackground/SecondViewController.m +++ b/ChangingBackground/SecondViewController.m @@ -12,7 +12,9 @@ @implementation SecondViewController - (IBAction)goBackButtonPressed { - [self.navigationController popViewControllerAnimated:YES]; + if ([self.delegate respondsToSelector:@selector(segueToFirst)]) { + [self.delegate segueToFirst]; + } } @end diff --git a/ChangingBackground/SecondViewController.xib b/ChangingBackground/SecondViewController.xib deleted file mode 100644 index d603949..0000000 --- a/ChangingBackground/SecondViewController.xib +++ /dev/null @@ -1,243 +0,0 @@ - - - - 1552 - 12C3006 - 3084 - 1187.34 - 625.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 2083 - - - IBProxyObject - IBUIButton - IBUILabel - IBUIView - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 274 - - - - 292 - {{71, 118}, {209, 21}} - - - - _NS:9 - NO - YES - 7 - NO - IBCocoaTouchFramework - Second View Controller - - 1 - MCAwIDAAA - darkTextColor - - - 0 - - 1 - 17 - - - Helvetica - 17 - 16 - - NO - - - - 292 - {{118, 178}, {85, 44}} - - - _NS:9 - NO - IBCocoaTouchFramework - 0 - 0 - 1 - Go Back - - 3 - MQA - - - 1 - MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA - - - 3 - MC41AA - - - 2 - 15 - - - Helvetica-Bold - 15 - 16 - - - - {{0, 20}, {320, 548}} - - - - - 3 - MQA - - 2 - - - - - IBUIScreenMetrics - - YES - - - - - - {320, 568} - {568, 320} - - - IBCocoaTouchFramework - Retina 4 Full Screen - 2 - - IBCocoaTouchFramework - - - - - - - view - - - - 3 - - - - goBackButtonPressed - - - 7 - - 10 - - - - - - 0 - - - - - - 1 - - - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 4 - - - - - 7 - - - - - - - SecondViewController - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - - - 10 - - - - - SecondViewController - UIViewController - - goBackButtonPressed - id - - - goBackButtonPressed - - goBackButtonPressed - id - - - - IBProjectSource - ./Classes/SecondViewController.h - - - - - 0 - IBCocoaTouchFramework - YES - 3 - 2083 - - diff --git a/MainStoryboard.storyboard b/MainStoryboard.storyboard new file mode 100644 index 0000000..25d2b7e --- /dev/null +++ b/MainStoryboard.storyboard @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +