
If you're watching this lecture prior August 2014, XCode 6 and iOS 8 are only available in Beta version, and you need to become an Apple Developer to access it.
Registration process to become an Apple developer.
Note: If you're watching this lecture prior August 2014, XCode 6 and iOS 8 are only available in Beta version, and you need to become an Apple Developer to access it. This lecture show
Step by step on how to get the Beta version of XCode with iOS 8 SDK
How to open XCoe 6 Beta
How to create your very first iOS 8 XCode project using the Swift language
Creating labels with the XCode 6 / iOS 8 interface builder tool
Learning what are constraints and how to use them.
Source code with the IBOutlet connection available in the download tab.
Note: since iOS 8.2, you need an exclamation point after the variable definition. example:
@IBOutlet var labelScreen : UILabel!
Without the "!" labelScreen.text = numbersAsText is not working.
Your very first button, creted with the XCode 6 / iOS 8 SDK
Triggering an action when a user pressed the UIButton .You will find the final code of this lecture in the download tab
Note: new versions of xcode use this:
@IBOutlet var myFirstLabel: UILabel!
@IBOutlet var myFirstButton: UIButton!
Overview of the Calculator iOS mobile app we are about to build
Creating the XCode project for the calculator app.
Creating the calculator layout in xcode's interface builder, part 1.
Creating the calculator layout in xcode's interface builder, part 2.
Note: xcode 6 project with layout can be found in the download tab
Adding the Clear button to the layout.
Adding numbers on each buttons, and prettifying the overall look.
Adding Tag to Calculator Number Buttons
Creating Variables to Represent Buttons on Code Side.
Creating Action When a Number Is Pressed
Triggering the 'Number Pressed' Action
Note: since iOS 8.2, you need an exclamation point after the variable definition. example:
@IBOutlet var labelScreen : UILabel!
Without the "!" labelScreen.text = numbersAsText is not working.
In this lecture, we're creating variables in the code that will store operations and numbers selected by the user.
Creating action named 'operationPressed'
Creating action 'Operation Pressed'
Note: newer version of xcode need a " at the end of the variable declarations:
@IBOutlet var labelScreen : UILabel!
@IBOutlet var buttonZero : UIButton!
@IBOutlet var buttonOne : UIButton!
@IBOutlet var buttonTwo : UIButton!
@IBOutlet var buttonThree : UIButton!
@IBOutlet var buttonFour : UIButton!
@IBOutlet var buttonFive : UIButton!
@IBOutlet var buttonSix : UIButton!
@IBOutlet var buttonSeven : UIButton!
@IBOutlet var buttonEight : UIButton!
@IBOutlet var buttonNine : UIButton!
@IBOutlet var buttonEqualSign : UIButton!
@IBOutlet var buttonDot : UIButton!
@IBOutlet var buttonPlus : UIButton!
@IBOutlet var buttonMinus : UIButton!
@IBOutlet var buttonDivision : UIButton!
@IBOutlet var buttonMultiplication : UIButton!
@IBOutlet var buttonClear : UIButton!
Creating the sub-actions of the 'operation pressed'
Showing you how to connect the buttons for logic operations (add, subtract, multiply, divide, etc...) to the code behind.
Creating the action named 'operation pressed', part 4.
Updating the 'number pressed' action code.
Creating the Clear action functionality to clear the calculator screen
Connecting the Clear button to the code behind action.
Get the Final Source code Included in the download tab
Trying out all of the calculator's operations
Welcome to this course, this is Yohann. I will be your instructor.
This is a hands on course where you learn the concept of the Swift langage by applying them live. This is not just another course about theory.
I will show you every single steps you need to quickly get started with Swift. You will learn how to install the software to start using swift, how to get the developer license, how to create iPhone and iPad user interface layouts made of controls like buttons and labels, and you will learn how to connect the screen elements to the code to make them interactive. By the way, I provide you all the source code projects that we work on.
In this course, we prefer using the visual tools over coding, and we keep the programming part as simple as possible.
By the end of the course, you will know how to create a real iOS app, a fully functional calculator, ready to publish in the apple app store.
Come learn Swift with us, it’s here to stay and now is the time to be ahead of the curve.
Join us now. I’ll see you in the class room.