Section 3 And 4 Flashcards
Page based App
Pages app in the app.
Swipe through lots of apps
Single view app
Single page app
Tab app
Different icons at the bottom to switch between tabs
Game app
For gaming
The left pane of Xcode has all what?
All the files that make up the app
- these are the files you go through to debug
Main window is used for?
I for about the app
Coding etc
Right pane
Is the context menu
Helps to edit storyboard items
Depends on what’s on what’s selected
The play, stop, and iPhone simulator selectors are located where?
At the top left of the program.
Main storyboard a
Has two other names. What are they?
Graphical interface
View (main) controller
View controller . Swift
The main controller that controls app code
Opacity
Lacking transparency or translucence
Place holder text
(Penis size?)
State configuration
After pressing a text it will change color
Brings down to true ration
Aspect fit
Keeps ratio but stretches it
Aspect fill
Master detail App
- list of items on left hand side of application
- large window
- ex: Mail app iPad
Green code is?
How do you access it?
Comments. You can access //
Class
Chunk of code associated with view controller.
Has 2 functions
1- viewdidload
Viewdidload
Runs as soon as app opens
What is the purpose of print?
To help display data to the logs
Where do you drag buttons too.
Just under class
IBAction
Function for a method whenever that button is tapped
Outlet
Something to refer to the label as
String
Connection of characters
Unwrapping
Telling swift we’re doing is ok. (!)
Variables
A value that can change depending on conditions.
Var string = 6
Integers
Whole numbers
INT.
Double
Decimal numbers
Can you multiplayer doubles and INTs ?
No you must covert to like conditions
Boolean
True or false statement
Arrays
Stores in for and numbers
Count to 4 in array language.
(0) , (1), (2) , (3)
How do you remove an item from an array?
ArrayRemoveAtIndex
Dictionaries
Has items and defines them and stores them in the dictionary.
If statement
Testing if two items meet certain conditions.
Else statement
Is what happens if the items don’t meet the conditions of the if statement
!=
Not equal to sign
Let variable = Int(arc4random_uniform)]{ }
Generate a random number
A for loop
Example
Var i = 1; i
i++
Short hand to increase i by 1 in a loop or equation
i–
Short hand for subtraction