diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..5d73ec3
Binary files /dev/null and b/.DS_Store differ
diff --git a/IfElse/.DS_Store b/IfElse/.DS_Store
new file mode 100644
index 0000000..0271c52
Binary files /dev/null and b/IfElse/.DS_Store differ
diff --git a/IfElse/IfElse.xcodeproj/project.xcworkspace/xcshareddata/IfElse.xccheckout b/IfElse/IfElse.xcodeproj/project.xcworkspace/xcshareddata/IfElse.xccheckout
index c528788..f8e7fce 100644
--- a/IfElse/IfElse.xcodeproj/project.xcworkspace/xcshareddata/IfElse.xccheckout
+++ b/IfElse/IfElse.xcodeproj/project.xcworkspace/xcshareddata/IfElse.xccheckout
@@ -7,34 +7,34 @@
IDESourceControlProjectIdentifier
1FB1EB48-B010-423E-B8FC-A6EF94AD96F8
IDESourceControlProjectName
- project
+ IfElse
IDESourceControlProjectOriginsDictionary
- 871AD5BEB35E842816B7B3CF4033C4298E764D23
- https://github.com/accesscode-2-2/unit-0.git
+ BAD0033D05756E529C5FF0EABC2DBC15B8B8219E
+ https://github.com/ddistant/IfElse.git
IDESourceControlProjectPath
- lessons/week-0/IfElse/IfElse.xcodeproj/project.xcworkspace
+ IfElse/IfElse.xcodeproj
IDESourceControlProjectRelativeInstallPathDictionary
- 871AD5BEB35E842816B7B3CF4033C4298E764D23
- ../../../../..
+ BAD0033D05756E529C5FF0EABC2DBC15B8B8219E
+ ../../..
IDESourceControlProjectURL
- https://github.com/accesscode-2-2/unit-0.git
+ https://github.com/ddistant/IfElse.git
IDESourceControlProjectVersion
111
IDESourceControlProjectWCCIdentifier
- 871AD5BEB35E842816B7B3CF4033C4298E764D23
+ BAD0033D05756E529C5FF0EABC2DBC15B8B8219E
IDESourceControlProjectWCConfigurations
IDESourceControlRepositoryExtensionIdentifierKey
public.vcs.git
IDESourceControlWCCIdentifierKey
- 871AD5BEB35E842816B7B3CF4033C4298E764D23
+ BAD0033D05756E529C5FF0EABC2DBC15B8B8219E
IDESourceControlWCCName
- unit-0
+ IfElse
diff --git a/IfElse/IfElse.xcodeproj/project.xcworkspace/xcuserdata/danieldistant.xcuserdatad/UserInterfaceState.xcuserstate b/IfElse/IfElse.xcodeproj/project.xcworkspace/xcuserdata/danieldistant.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..08d979e
Binary files /dev/null and b/IfElse/IfElse.xcodeproj/project.xcworkspace/xcuserdata/danieldistant.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
new file mode 100644
index 0000000..fe2b454
--- /dev/null
+++ b/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -0,0 +1,5 @@
+
+
+
diff --git a/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcschemes/IfElse.xcscheme b/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcschemes/IfElse.xcscheme
new file mode 100644
index 0000000..6485954
--- /dev/null
+++ b/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcschemes/IfElse.xcscheme
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcschemes/xcschememanagement.plist b/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..44aa48b
--- /dev/null
+++ b/IfElse/IfElse.xcodeproj/xcuserdata/danieldistant.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,27 @@
+
+
+
+
+ SchemeUserState
+
+ IfElse.xcscheme
+
+ orderHint
+ 0
+
+
+ SuppressBuildableAutocreation
+
+ 8DFE63E81B22A54400D3D7AA
+
+ primary
+
+
+ 8DFE64011B22A54400D3D7AA
+
+ primary
+
+
+
+
+
diff --git a/IfElse/IfElse/Base.lproj/Main.storyboard b/IfElse/IfElse/Base.lproj/Main.storyboard
index 34c014c..35e1cf5 100644
--- a/IfElse/IfElse/Base.lproj/Main.storyboard
+++ b/IfElse/IfElse/Base.lproj/Main.storyboard
@@ -2,7 +2,6 @@
-
@@ -17,104 +16,91 @@
-
-
+
+
+
+
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/IfElse/IfElse/ViewController.h b/IfElse/IfElse/ViewController.h
index 406a385..20d2d5a 100644
--- a/IfElse/IfElse/ViewController.h
+++ b/IfElse/IfElse/ViewController.h
@@ -10,6 +10,5 @@
@interface ViewController : UIViewController
-
@end
diff --git a/IfElse/IfElse/ViewController.m b/IfElse/IfElse/ViewController.m
index b3ee131..05cf14e 100644
--- a/IfElse/IfElse/ViewController.m
+++ b/IfElse/IfElse/ViewController.m
@@ -9,19 +9,44 @@
#import "ViewController.h"
@interface ViewController ()
+@property (weak, nonatomic) IBOutlet UITextField *textField1;
+@property (weak, nonatomic) IBOutlet UITextField *textField2;
+@property (weak, nonatomic) IBOutlet UITextField *textField3;
+@property (weak, nonatomic) IBOutlet UIButton *buttonTellsFuture;
+@property (weak, nonatomic) IBOutlet UISwitch *toggle;
@end
-@implementation ViewController
-- (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
-}
+@implementation ViewController
-- (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
+- (IBAction)buttonTapped:(id)sender {
+ NSLog(@"tapped");
+
+ NSString *one = self.textField1.text;
+ NSString *two = self.textField2.text;
+ NSString *three = self.textField3.text;
+
+ BOOL oneEqualsTwo = [one isEqualToString:two];
+ if (oneEqualsTwo) {
+ [self.toggle setOn:NO animated:YES];
+ } else {
+ [self.toggle setOn:YES animated:YES];
+ }
+
+ if ([three isEqualToString:@"Brooklyn"]) {
+ NSLog(@"Brooklyn is fun! Especially the bars in Williamsburg!");
+ } else if ([three isEqualToString:@"Queens"]) {
+ NSLog(@"Queens has weird roads, but its home to C4Q and Access Code! Awesome!");
+ } else if ([three isEqualToString:@"Manhattan"]) {
+ NSLog(@"Manhattan is great! Check out Times Square, a play on Broadway, Central Park and the Empire State building!");
+ } else if ([three isEqualToString:@"Westchester"]) {
+ NSLog(@"Westchester technically isn't a borough, but its still the best!");
+ } else {
+ NSLog(@"%@ is the darkness, Simba. You must never go there.", three);
+ }
+
+
}
@end