Consideration when developing mobile apps - answer---limited screen size
--each app has one window
--limited resources: app needs to star and quit quickly
--might not always have internet access
--could be interrupted
--no physical keyboard and mouse for interaction
SDK Components - answer---Xcode
--Frameworks
--Simulator
--Instruments
Xcode - answer---Integrated Development Environment (IDE) to create and manage development
projects
--Interface Builder: tool to build your application user interfaces
Frameworks - answer-Software libraries that provide specific functionality
Simulator - answer---Simulates running your apps on you Mac
--Enables yo to run, test, and debug iPhone and iPad apps on your Mac
--recreates most of the physical behavior of an actual device
--Except: no phone, camera, GPS, Accelerometer, iPod, bluetooth
--Doesn't emulate memory usage
Instruments - answer-Gather and analyze data on your apps behavior
Toolbar - answer---Lets you preform tasks to build and run your projects
--Left drop down lets you choose how yo want build and run your project
--In the middle is the activity view which shows what's going on at any given time
Hierarchy View - answer-Shows the content of the story board, split up into scene and content
Utility View - answer---Information for the currently selected object. This is where you set various
properties
--File Inspector
--Quick Help
--Identity inspector
--Attributes inspector
--Size inspector
--Connections inspector
Library - answer---File templates
--Code Snippets
--Objects (square in circle): Contains all the UI objects you can use in your user interface by simply
dragging and dropping onto your view
--Media library
, --Search field at the bottom of the library
code: import UIKit - answer-imports the UIKi framework which is the foundation of all IOS UI
code: class viewController: UIViewController - answer--defines our class View Controller
-UIViewController is a superclass (which is in UIKit which is why we imported that)
-all code for this class will be in the curly braces
Make a button - answer---click and drag UI element to code
--Connection: Action
--Name: buttonPressed
--Type: UIButton
--Event: Touch up Inside is the standard event to use for buttons
--Arguments: Sender
code: @IBAction func buttonPressed(_ sender: IUButton) {} - answer-method that calls buttonPressed
--called a method header
Connect button to outlet - answer---click and drag to label
--Connection: Outlet
--Name: messageText
--Type: UILabel
--leave storage as weak
--Connect
code: @IBOutlet weak var messageText: UILabel! - answer-makes an outlet
Object-Oriented Programming - answer---OOP models the natural way humans think about thing in
terms of attributes and behaviors
--OOP makes building complex, modular and reusable apps much easier
--OOP comes data and operations on the data (behavior) into one unit, a class
--Swift and Java are both object oriented languages.
Class - answer---Models a concept or thing in the real world
--Provides a template, or blueprint for it's objects
--Defines the characteristics (data properties) and behavior (methods) of its objects
--The data properties provide the class attributes, or characteristics
--Similar to function, methods are the actions or behaviors of the class.
--Defines which parts can be seen outside the class therefore hiding private information
Objects - answer---Something that can be acted on
--An instance, or occurrence, of a given class
-An object of a given class has the structure and behavior defined by the class
--Many different objects can be defined for a given class.
--All objects of the same class of the same structure
--Contains Properties and Methods
Objects: Properties - answer-store data/information