diff --git a/Postcard.xcodeproj/project.pbxproj b/Postcard.xcodeproj/project.pbxproj index 0bbaf6a..647975c 100644 --- a/Postcard.xcodeproj/project.pbxproj +++ b/Postcard.xcodeproj/project.pbxproj @@ -13,6 +13,8 @@ BB52E8BF1A0C0647006FC584 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BB52E8BE1A0C0647006FC584 /* Images.xcassets */; }; BB52E8C21A0C0647006FC584 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB52E8C01A0C0647006FC584 /* LaunchScreen.xib */; }; BB52E8CE1A0C0647006FC584 /* PostcardTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BB52E8CD1A0C0647006FC584 /* PostcardTests.swift */; }; + BBC19B6F1A6D99C5008EA54D /* SagradaFamilia.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = BBC19B6E1A6D99C5008EA54D /* SagradaFamilia.jpeg */; }; + BBC19B711A6D9C74008EA54D /* AlbertEinsteinStamp.jpg in Resources */ = {isa = PBXBuildFile; fileRef = BBC19B701A6D9C74008EA54D /* AlbertEinsteinStamp.jpg */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -36,6 +38,8 @@ BB52E8C71A0C0647006FC584 /* PostcardTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PostcardTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; BB52E8CC1A0C0647006FC584 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; BB52E8CD1A0C0647006FC584 /* PostcardTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostcardTests.swift; sourceTree = ""; }; + BBC19B6E1A6D99C5008EA54D /* SagradaFamilia.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = SagradaFamilia.jpeg; sourceTree = ""; }; + BBC19B701A6D9C74008EA54D /* AlbertEinsteinStamp.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = AlbertEinsteinStamp.jpg; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -90,6 +94,8 @@ BB52E8B51A0C0647006FC584 /* Supporting Files */ = { isa = PBXGroup; children = ( + BBC19B701A6D9C74008EA54D /* AlbertEinsteinStamp.jpg */, + BBC19B6E1A6D99C5008EA54D /* SagradaFamilia.jpeg */, BB52E8B61A0C0647006FC584 /* Info.plist */, ); name = "Supporting Files"; @@ -193,6 +199,8 @@ buildActionMask = 2147483647; files = ( BB52E8BD1A0C0647006FC584 /* Main.storyboard in Resources */, + BBC19B6F1A6D99C5008EA54D /* SagradaFamilia.jpeg in Resources */, + BBC19B711A6D9C74008EA54D /* AlbertEinsteinStamp.jpg in Resources */, BB52E8C21A0C0647006FC584 /* LaunchScreen.xib in Resources */, BB52E8BF1A0C0647006FC584 /* Images.xcassets in Resources */, ); @@ -407,6 +415,7 @@ BB52E8D31A0C0647006FC584 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; BB52E8D41A0C0647006FC584 /* Build configuration list for PBXNativeTarget "PostcardTests" */ = { isa = XCConfigurationList; @@ -415,6 +424,7 @@ BB52E8D61A0C0647006FC584 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/Postcard.xcodeproj/xcuserdata/scottbrooke.xcuserdatad/xcschemes/Postcard.xcscheme b/Postcard.xcodeproj/xcuserdata/scottbrooke.xcuserdatad/xcschemes/Postcard.xcscheme index b59f83d..94e3939 100644 --- a/Postcard.xcodeproj/xcuserdata/scottbrooke.xcuserdatad/xcschemes/Postcard.xcscheme +++ b/Postcard.xcodeproj/xcuserdata/scottbrooke.xcuserdatad/xcschemes/Postcard.xcscheme @@ -5,6 +5,36 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -32,6 +90,15 @@ useCustomWorkingDirectory = "NO" buildConfiguration = "Release" debugDocumentVersioning = "YES"> + + + + diff --git a/Postcard/AlbertEinsteinStamp.jpg b/Postcard/AlbertEinsteinStamp.jpg new file mode 100644 index 0000000..346c363 Binary files /dev/null and b/Postcard/AlbertEinsteinStamp.jpg differ diff --git a/Postcard/Base.lproj/LaunchScreen.xib b/Postcard/Base.lproj/LaunchScreen.xib index ab97544..6c1289b 100644 --- a/Postcard/Base.lproj/LaunchScreen.xib +++ b/Postcard/Base.lproj/LaunchScreen.xib @@ -1,7 +1,7 @@ - + - + diff --git a/Postcard/Base.lproj/Main.storyboard b/Postcard/Base.lproj/Main.storyboard index 3a2a49b..5fc2e54 100644 --- a/Postcard/Base.lproj/Main.storyboard +++ b/Postcard/Base.lproj/Main.storyboard @@ -1,13 +1,13 @@ - + - + - + @@ -15,11 +15,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Postcard/SagradaFamilia.jpeg b/Postcard/SagradaFamilia.jpeg new file mode 100644 index 0000000..29f2e28 Binary files /dev/null and b/Postcard/SagradaFamilia.jpeg differ diff --git a/Postcard/ViewController.swift b/Postcard/ViewController.swift index fb7fe3b..39f1e8a 100644 --- a/Postcard/ViewController.swift +++ b/Postcard/ViewController.swift @@ -9,7 +9,12 @@ import UIKit class ViewController: UIViewController { - + + @IBOutlet weak var messageLabel: UILabel! + @IBOutlet weak var enterNameTextField: UITextField! + @IBOutlet weak var enterMessageTextField: UITextField! + @IBOutlet weak var mailButton: UIButton! + override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. @@ -20,6 +25,16 @@ class ViewController: UIViewController { // Dispose of any resources that can be recreated. } + @IBAction func sendMailButtonPressed(sender: UIButton) { + messageLabel.hidden = false + messageLabel.text = enterMessageTextField.text + messageLabel.textColor = UIColor.redColor() + + enterMessageTextField.text = "" + enterMessageTextField.resignFirstResponder() + + mailButton.setTitle("Mail Sent", forState: UIControlState.Normal) + } }