Welcome to this class, I’m Hieu Pham, I started to work this IOS about 5 year ago.I start to work with Swift about 6 months ago and I very like this language and specially I’m very interested in apple Watch App. So I make this course to help you make applications for Apple Watch with Swift Language, whether you are a beginner or advanced developer, this course is for you!
The course covers the apple watch kit, help you to create a 1-2-3 game on Apple Watch using swift.
This course is suitable for any one who want to make an apple watch app. I’m similar like you and I only start to work with Apple Watch before you only few months so I will know how it is and I can give you my advises also my experiments to work with Apple Watch. I come from zero to learn how to make an app for IOS and apple watch and I know how to guide the student like you to make your apps with your idea. So don’t worry. I will let you step by step from the beginning to the end of this course and will help you to fix your bugs and give you some advice to improve it. You will learn to prepare for you code environment and start your developer Carrier by making some easy app and I will guide you step by step to better apps.
At the end of this course , You can make this game (Absolutely YES!) and you can update some function and upload it to Apple Store if you want. The target of this course is help you to make your own app or you can make apps for everyone!!
It’s very interesting isn’t it? So let start with me and don’t for get to take a look some video preview of my course. If you get this course you will get 50% off for my next courses.
The course consists of:
+ Hour video lectures with code from scratch
Application files and source code ready for download.
welcome to my course. I'm Hieu Pham, I'm a developer of IOS and this is my Second Course on UDEMY. This course is help you to make your own application for apaple watch. As you know Apple has announce about Apple Watch from last year and they said that apple watch will be sale early in 2015. At november of 2014 , apple released the Xcode beta with watch kit for developer all around the world to make their application and prepare for release of apple Watch.
First of all if you don't know what apple watch is and how is is? i think this is the web site you should take a look
as you can see from the address. you can take a look what apple watch look like and how it operate.
The apple watch has three type and and to size of screen like 42mm and 38mm. But all of that has operate same.
In this course we will learn how to make an application for apple watch and were going to use the swift language for coding. You can use Object C if you like by my advice is swift. Why? because swift is new language, encourage by Apple and easy to learn from my experiment. Right now apple still accept your code written by object C to apple Store but may be in the future, only Swift is accepted. So i think you should start by swift. Don't worry, i will go to step by step with you and lead you to the destination, help you as much as i can.
So let's start!!
Welcome back, In this lecture, i will guide you to preparing for your coding and some tips for your code carrier.
First of all we have to use Xcode Beta to developer the apple watch application. At this time, only Xcode beta include the watch kit for you to code. IF you using Xcode, you only make an app for IOS or MACOS not for Watch App. So you have to download the Xcode Beta. Right now Xcode version is 6.2 beta 3
first go to the address:
in here you can see overview about watchKit and resource for your developing
Create WatchKit apps.
WatchKit apps have two parts: A WatchKit extension that runs on iPhone and a set of user interface resources that are installed on Apple Watch. When your app is launched on Apple Watch, the WatchKit extension on iPhone runs in the background to update the user interface and respond to user interactions. WatchKit provides three opportunities to extend your iPhone app to Apple Watch: WatchKit apps, Glances, and actionable notifications.
you should View the Getting Started
with WatchKit video in here. it's very useful for you.
and scroll down to the last end and you can download the xcode beta in here.
Apple require you have a developer account to download xcode beta but you can log in by your apple id and agree with term of Apple and download it!
Create your first Apple Watch Application - Hello world. You will learn to create your first application with apple watch kit on simulator. Learn to Work with label and group.
- Make a challenge
- Share some tips to help your coding
- if you have any question, please upload your code.
You have a change to test your self for what you learn in this Section
Intro the 1+2 = 3 game, help you to download this game to your IOS.
you can use the apple id: email@example.com
to download this game.
Let's play 123 game to see how it'w worked.
This is very interested game for you or for any one with very simple math function. Let's play and check how is your score?
Before you make any app. First of all you will come from your idea. after that you should draw out your idea, draw out how your app look like. how many interface and how many button, how many label…After that we will have a over view about our app and we can make an app very clearly. you can imagine that when we make a app like we are building a house. before we build a house we have to make a design for our house.
let's create the 1-2-3 game with apple watchkit extension!
- Create an app with watchkit extension and make a design for our interfaces like our design.
- Learn to work with group and label, button
Hook all the elements of First Interface to our code and try to check all the function of the elements.
Hook the other elements of the game InterFace to our code
- Make a setUpFunctionWithNumbers for our game when start a new game, start a new question.
we will make a setupFunctionLabel, each question include the number and the sign "+" or "-", we will make a function that create a random function with random number and random sign.
1 + 1 = 2 ==> [1, + , 1]
1 + 2 - 1 = 2 ==> [1, +, 2, -, 1]
2 - 2 + 3 - 1 = 2 ==> [2, -, 2, +, 3, -, 1]
So with two number here we will have two number with a sign , three number we will have three sign , 4 number we will have three sign.
i think we will make all the numbers and sign in to one array, and the odd index is for sign (- or +) and even index for number
you can see we will have an array like [1, + , 1] or [1, +, 2, -, 1] or [2, -, 2, +, 3, -, 1]
so you can see when we have two numbers, we will have an array with 3 elements
[1, + , 1]
if we have three number, we will have 5 elements:
[1, +, 2, -, 1]
if we have fours number, we will have 7 elements:
[2, -, 2, +, 3, -, 1]
so we will make a function like this
Now we have an array with our contents inside, so we will make a function for that.
we will make a function to setup our label depend on our contentsArray
First we have to create a function depend on our contentsArraym next we have to check the function result because we only accept the result from 1 to 3 .
we will make a first job .
OK, now we have a function and we all ready set it up on our inter face. But we have to check result of that function because we only accept the result from 1 to 3
It's time to create our checkResult function when user klick on the answer button, we will check the result with the number that user klick depend on that we will increase the score of finish game.
after we have the user score and we stop our game. Let create the user Score label on first interface when user finish the game.
- This is challenge for you to make a setting interface with setting function. You can user a global value or user NSUserdefault to save the setting .
- Create more label to show up the result label of the user's choice
- make a animated image.
I’m Hieu Pham, I started to know about IOS and work this IOS about 5 year ago.
I start to work with Swift about 6 month ago and I very like this language and specially I’m very interested in apple Watch App. I'm working at Taoviet-Apple-Services about nearly 5 year. I have a lot of applications on Apple store
I already join a lot of online courses from the beginning of my developer carrier, some courses are good, some courses are not good as I thought. So I know how to help the student work effective with their learning. After experimenting with various courses, learning styles, and teaching processes, I've adopted the best strategies and used them in my courses. Since the announcement of the new Swift programming language by Apple, I have work with Swift since that also for Apple watch too. You can check my application on Apple Store by search the taoviet.vn and Hieu Pham.