- Now we have a working Settings.bundle and we need…to be able to read the values in our code.…In this movie, we'll look at how that's done.…Here, I've opened a working copy of BWRSS-Settings-02…from Chapter 08 of the exercise files.…First thing I'm gonna do is I'm gonna come out here…and I'm going to reset the simulators, so I select the…iOS Simulator menu, Reset Content and Settings,…and press the Reset button.…The reason for this is so it'll look like we're…installing the app for the first time.…In order to actually read values from the settings,…the app has to have been run and a setting has to have…actually been selected in the Settings app,…so you're not always gonna have a value…and you need to have a default.…

So I come in here to RSSBB.m, we can find the...…where is it here, getMaxItemsPerFeed.…And this is the method where we read…that value from the preferences.…So we create an NSUserDefaults object with the…standardUserDefaults, and we read the…objectForKey:@"max_items_per_feed" and…that'll give us a number.…

Resume Transcript Auto-Scroll

Author

Released

6/26/2015

SQLite is considered a de facto industry standard for lightweight, embedded SQL database programming, and it's a core storage technology in iOS. SQLite and the iOS SDK make a great pair for creating lightweight, data-driven applications. Using these tools, Bill Weinman shows how to build a solid RSS reader that supports all current iOS form factors, including split view on the iPhone 6+. He also demonstrates how to set up data in a clear, intuitive table view; code the view controllers; create a preferences interface for users to adjust app settings; and build an app with features like pull-to-refresh and a share sheet, which allows users to add URLs to their RSS feed reading list.