diff --git a/My First IOS app.xcodeproj/project.pbxproj b/My First IOS app.xcodeproj/project.pbxproj index d1c6eba..8f6d81a 100644 --- a/My First IOS app.xcodeproj/project.pbxproj +++ b/My First IOS app.xcodeproj/project.pbxproj @@ -47,6 +47,7 @@ 6466DC5D20E382A800147072 /* My First IOS appUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "My First IOS appUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 6466DC6120E382A800147072 /* My_First_IOS_appUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = My_First_IOS_appUITests.swift; sourceTree = ""; }; 6466DC6320E382A800147072 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 6466DC6F20E774B400147072 /* MyPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = MyPlayground.playground; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -103,6 +104,7 @@ 6466DC4820E382A700147072 /* Assets.xcassets */, 6466DC4A20E382A700147072 /* LaunchScreen.storyboard */, 6466DC4D20E382A700147072 /* Info.plist */, + 6466DC6F20E774B400147072 /* MyPlayground.playground */, ); path = "My First IOS app"; sourceTree = ""; diff --git a/My First IOS app.xcodeproj/xcuserdata/h_mal.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/My First IOS app.xcodeproj/xcuserdata/h_mal.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ b/My First IOS app.xcodeproj/xcuserdata/h_mal.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ + + + diff --git a/My First IOS app/Base.lproj/Main.storyboard b/My First IOS app/Base.lproj/Main.storyboard index 273375f..28d2437 100644 --- a/My First IOS app/Base.lproj/Main.storyboard +++ b/My First IOS app/Base.lproj/Main.storyboard @@ -1,14 +1,18 @@ - - + + + + + - + + - + @@ -16,11 +20,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/My First IOS app/ViewController.swift b/My First IOS app/ViewController.swift index 0742aa7..cbbaa81 100644 --- a/My First IOS app/ViewController.swift +++ b/My First IOS app/ViewController.swift @@ -9,7 +9,16 @@ import UIKit class ViewController: UIViewController { - + + @IBOutlet weak var defaultLabel: UILabel! + @IBOutlet weak var emailTextField: UITextField! + + @IBAction func buttonClick(_ sender: Any) { + if let name = emailTextField.text{ + defaultLabel.text = "\(name)" + "\n" + "hello" + } + } + override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. @@ -22,4 +31,3 @@ class ViewController: UIViewController { } - diff --git a/README b/README new file mode 100644 index 0000000..e69de29