From the course: iOS App Development: Accessibility

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Removing features and functionality

Removing features and functionality - iOS Tutorial

From the course: iOS App Development: Accessibility

Start my 1-month free trial

Removing features and functionality

- [Instructor] We left off in our last video talking about restricting certain parts of our app when running within a guided access session. In this video I'd like to show you how we, as developers, can choose to limit certain functionality within our app when it's being run in a guided access session. We'll make the choice to prevent our users from favoriting a bridge from the detail screen whenever our app is being run within a guided access session. It's fairly easy to do so let's get started by opening up our bridge detail view controller and navigating to our viewDidLoad method. We'll need to listen for a notification that UIkit will post when the guided access status changes. Go ahead and scroll to the bottom of our viewDidLoad method and open up a new line on line 39. We'll need to listen for a notification that UIkit will post when the guided access status changes. The observer will be ourself, and we'll reuse the configureFavoriteButton method. And the name of the…

Contents