part 1.8 #Simulator - Complete iOS Bootcamp - Swift & Objective C

123 Просмотры
Издатель
Complete iOS Bootcamp - Swift & Objective-C : part-01

In this section, we will cover the following topics:

Hardware
Programming Languages
Different Software
The tool of Choice (XCode)
Use of iOS Simulator
Interface Builder
Developing a Very Basic App
Files In XCode
Some Basic Terminology
Using Text Views and Labels
Finally Getting Ready for Next Section


Hardware
Please keep the following in mind regarding the hardware you’d need to be able to use this course:
You could use a Mac Machine or Laptop (potentially you can buy a mac mini)
Or you can install the Mac Operating system on a Windows machine
You don’t need to have an iPhone device to actually use this course

Software
Different software tools that one can use to develop an iOS app are also discussed. We briefly cover the advantages and disadvantages of each of them.
An important matter in here is learning that software alone is not enough. We would also need a programming language. A wide range of IDE software is used to develop iOS Applications. Some of them are as follows:
XCode - Apple default iOS IDE
Xamarin - Microsoft cross-platform (iOS, Android, Windows) IDE
PhoneGap - HTML5 + Javascript iOS Development
Flutter -Google’s new IDE
IDE stands for - Integrated Development Environment


Tools
Next, we opted for XCode as our primary development tool. It’s an IDE that offers a wide range of options and it’s best suited for native iOS development. We will have to download a version from Apple Developer Website and install it on our computer.
XCode is equipped with various tools and programming languages and will take care of the debugging and running the app. The following two programming languages could be used to develop iOS apps in XCode:
Objective-C (older and yet quite useful)
Swift (more modern and most commonly used)


First App
We learned where the two programming languages are located and how we are going to use them throughout this course.


XCode
Let’s have a look at some of the basics of XCode and try and understand how different things work together. XCode has 5 primary areas:
Text Editor
Toolbar
Utility Window
Navigation Window
Debugging Area


Interface Builder
Interface Builder is used to design the visual elements of our iOS Apps. Having a look through how we make basic outlets and attributes editor of the interface builder. We will also look at the dimensions and get a starting sense of how the point system works.


iOS Simulator
Simulator will compile our app. Compile is the process of converting your code and interface into an actual app. It is actually more advanced than this simple explanation, but this simple one will suffice for now.
iOS Simulator is used to display the app in a device-like simulator. Simulators have both device and version. One could have different devices with different iOS versions. A simulator although very similar, it is not the exact as the phone device.
In this lesson, we'll get to simulate our app on different devices and different sizes. After trying different sizes, I suggested that you stick to only one as it will simplify your lives from now on.
In this lesson, we will also briefly touch on making a simulator a default one and also how to add or remove simulators.


Understanding iOS
What’s the relationship between all these different files in XCode. What are they and how do they work? What should we wok on and how should we get comfortable working on our project? And also which files can be ignored for now?
In this early stages, there are only ever 3 files that are important for iOS App development. Those files are:
.storyboard file - which is your visual design file
.m file - which is the actual programming file of your application
.h file - Which is the header file containing the declaration that also works as the connection between the .m and the .storyboard file

Build - Run - Compile- Is the process of converting the iOS project in XCode into an iOS App in Simulator (or a physical device)


Outlets
In this lesson, we will talk about outlast and how we can connect them to our app.


Textviews
In this lesson, we will play around with a textview in our interface builder. Text view is a container where you can add larger text content.
Категория
Язык программирования Swift
Комментариев нет.