Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB 4- Hello World (Max Grade 110pts) The following lab is intended to exercise your skills and understanding of labels, text fields, buttons and basic

image text in transcribed
LAB 4- Hello World (Max Grade 110pts) The following lab is intended to exercise your skills and understanding of labels, text fields, buttons and basic connection of Ul to code. 1. Create a new iOS project named "HelloWorld" (20 pts) Create two Labels a. headLabel- label that at the very top that displays your NAME i. li. greetinglabel-label under headLabel that is blank to start b. (20 pts) Create a Text Field nameTextField -a text field that that is positioned under both labels and has placeholder text of "Enter your name i. (20 pts) Create two side by side Buttons c. i. helloButton-this will be the left button and it will read "Say Hello" ii. goodbyeButton -this will be the right button and it will read "Say Goodbye" d. (40 pts) Handle the button press Validate the text field input, if there's no text in it write to the ii. If the helloButton is pressed, capture the name of the person from the ii. If the goodbyeButton is pressed, write "Goodbye, [namel" in the i. greetinglabel the message "Please input your name below text field and write "Hello, Iname]" in the greetinglabel greetinglabel 2. Extra Credit (10pts) Add a 3rd Label: timeStampLabel and display the current time in it every time the button is pressed assuming that there is a name in the text field HINT: use the Date() object Example output: Max Smith Hello, Max Smith 2:55 pm (you will need to do some formatting to get it to look like this) SUBMISSION DETAILS: Format: Lab MUST be written as an iOS project Medium: Lab MIST ba cub

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions