Create a random number generator Apple Watch app with Swift


iOS App Development Tutorial Section

Create a random number generator Apple Watch app with Swift

This iOS app development tutorial will guide you through creating a very simple random number generator Apple Watch app with Swift.
This Apple watch app will generate a random number for you whenever you press Tap on the screen.
Enjoy the tutorial!

Use the download button below to get the project files in ZIP format for the below Apple Watch tutorial.
You will find the files for the lectures 1, 3, 4, 8.

Download files for the random number generator Apple Watch App Project using Swift
(By downloading this file, you agree to our terms of services.)

1. Create the Xcoce project using Swift

Random number Apple Watch App Watchkit Swift
In this video turorial, we will get started with setting up and creating the Xcode project for the random number generator Apple Watch app with Swift

2. User interface in the Storyboard

iOS app development tutorial random number storyboard
We will now create the user interface in the Storyboard

3. Connect wkinterfacelabel and ibaction to the code

iOS video tutorial wkinterfacelabel ibaction watch app random number
In this iOS tutorial video, we will connect the wkinterfacelabel and ibaction to the code using Swift

4. Trigger the ibaction and the arc4random call

iOS app development tutorial trigger ibaction watchkit swift
We will now be triggering the ibaction watchkit using swift and the arc4random uniform method call

5. Add user interface maximum number

iOS developer tutorial generate maximum number
In this video lesson, you'll learn how to add the user interface for a maximum number to generate

6. Connect button and wkinterfacelabel to code

Connect button wkinterfacelabel iOS development tutorial
This video tutorial will show you how to connect the button sent actions and the wkinterfacelabel to the code

7. Programming the button plus and minus

iOS app development tutorial program button plus minus swift
In this iOS tutorial lesson, we will write the logic for when the button plus and minus is pressed

8. Test the watch app in the simulator

test watch app simulator iOS app development tutorial
In this last iOS video tutorial of the series, you are going to now tweak the user interface and test your app in the watch app simulator