Day-14 Flashcards

1
Q

MKMapViewDelegate

A

is a protocol full of optional methods that lets you receive many different types of map related updates

  • Responding to map positions changes
  • Loading Map Data
  • Tracking User Location
  • Managing Annotation Views
  • Managing the Display of Overlays
  • See documentation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

App States

A

Not Running - the app has not been launched, or was running and was terminated by the system

Inactive - The app is running in the foreground but it is currently not receiving events. This is usually brief and during transitions

Active - The app is running in the foreground and receiving events. This is the normal mode for apps

Background - The app is in the background and executing code. Apps briefly enter this mode on their way to being suspended. However, an app that requests extra executing time may remain in this state for an extra period of time. Also, an app being launched directly into the background enters this state instead of inactive

Suspended - The app is in the background but not executing code. The system moves apps to this state automatically and does not notify them before doing so. While suspended, an app remains in memory but does not execute code. It’s basically frozen in time. When a low-memory condition occurs, apps taking up large amounts of memory are terminated

When an alert based interruption occurs (phone call,text message, system message) your app temporarily moves into the inactive state so the system can send a prompt to a user

In response to this workflow, your app should do the following things in applicationWillResignActive if applicable to your app: Stop timers or periodic tasks, stop running queries, don’t initiate any new tasks, pause move playback (except when over airplay), pause the game, suspend any non critical operation or dispatch queues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Local & Push Notifications

A

The notification blurbs we see on lock screen and notifications coming from the top of the screen

Local notification comes from the App like the Clock App
Push Notification comes from the Server like Mail

When clicking the notifications, we fire off

application: didFinishRemoteNotification
application: didFinishLocalNotification

withOptions: We can tell the app to go to a specific part in the app when clicked on the notification.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The local and Push notifications Protocol/methods

UserNotificationCenter

A

Create an instance of UNMutableNotificationContent to define the title, comments, whatever we wanna show the user

UserNotificationCenter is the one we see on the device - swiping from the top. It’s different than the notification center we use inside the implementation of the app (similar to KVO).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly