Using Notification Center, we will have our app respond accordingly to a variety of different notifications activated by the user, all making our UI perform a different set of tasks.
- [Instructor] In our last lesson we left off…with using NotificationCenter to post…a notification which carried information…about the Beacon that caused our local…notification to be fired off.…In this lesson we're going to set up the listening…for those notification and make sure…our UI can respond when they're heard.…So let's jump into MenuTableViewController.…This is where we'll set up our observer…that's listening for our messages…posted through NotificationCenter.…So first I want to create a function…that's gonna be called once we receive a notification.…
We'll call this function notificationReceived.…This function is gonna take…an NSNotification as an argument.…Let me go ahead and work out the logic…and then we'll revisit what it is that I've done.…So in this function what I'm doing is checking to see…if the notification passed in contains a userInfo object,…and if it does, I'm gonna create a string called action…which is the value of the key action from our userInfo.…
Then based on its value, we're gonna check to see…
- What is iBeacon?
- Turning your iOS device into a beacon
- Discovering device locations
- Monitoring for iBeacons
- Responding to beacon discovery
- Creating a beacon-based app
Skill Level Intermediate
Programming the Internet of Things with iOSwith Michael Lehman2h 49m Intermediate
iOS 9 App Development: GamePlayKitwith Tammy Coron1h 31m Intermediate
1. Introduction to iBeacons
2. iBeacons with iOS Devices
3. Create a Beacon-Based App
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.