![]() ![]() Using Swift and an Xcode Playground you are going to perform some simple math operations. See File: Section 02 Exercise 01 Solution (70.8 kB) Your final app could look similar to this: You will have to restart the app from Xcode to see those images again. ![]() Tapping the buttons once each will hide each corresponding image. If you've built the app correctly, when you press the Run button to run your app on the simulator, you should see a red image, a blue image, and two buttons. Turn off support for Landscape Left and Landscape Right and turn on support for Upside Down and Portrait.If the blue button is pressed the blue image should hide.If the red button is pressed the red image should hide.The second button should say, "Hide Red".The first button should say, "Hide Blue".Put two buttons on the screen/storyboard.Put those two images on the screen in the storyboard.Grab two images (or make your own) from the Internet, one that is Red and one that is Blue.Build this app for and using the iPhone 6 simulator.Use the instructional video for help as your are building your application. You are going to build an app similar to the Boom App in the video. Project 1: Building an iOS App on Your Own If the value of the current iteration is a multiple of 3 AND a multiple of 5 print the word "BooYa".If the value of the current iteration is a multiple of 5 print the word "Ya".If the value of the current iteration is a multiple of 3 print the word "Boo".Create a loop that iterates 200 times starting at 1. ![]() If the number is even return true, otherwise return false.Ĭall the function and pass in an even number and print the result.Ĭall the function again and pass in an odd number and print the result. Your app should run and have a label on the screen that says, "Hello, world!"Ĭreate a function called isEven that takes one parameter of type Int.ĭetermine if that number is even or odd.
0 Comments
Leave a Reply. |