iOS Development Flashcards
Core Data
allows us to take the objects we have created and save them into an internal database.
core data entity
The same as a class,
created in xcdatamodeld file
ManagedObjectContext
acts as a bridge from app to database
Set initial view controller
View controller > Attributes > View Controller > Check off “Is initial View Controller”
continue
tells our for loop to skip a value if
break
breaks out of a loop if a specific condition is met
What is a Dictionary in swift?
An unordered collection of paired data. The paired data is commonly referred to as a key-value pair in which a key is a unique identifier for their associated value.
What do you call a dictionary with no key-value pairs?
An Empty Dictionary
what are if-let statements used for
To check if a real value exists inside of an optional. If the value exists, the optional will be unwrapped and assigned to a variable.
the ___ operator has higher precedence over the ___ operator
&&, ||
Instead of relying on the compiler to set operator precedence, we can do so ouselves with _____
Parentheses
with regards to logical operators, in an ___ statement true takes priority over false but in a ___ statement false takes priority over true
||, &&
The logical __ operator returnes true only when both operands are true, it returns false in all other cases.
&&
The logical __ operator returns true when either operands are true. when both operands are false, the logical expression evaluates to false
||
The logical __ operator translates to NOT and negates a Boolean value
!