[prefs setBool:FALSE setInteger:0 setBool:TRUE setBool:TRUE setInteger:1 setInteger:1 first thing that we’re doing here is setting up the default settings for our preference keys using NSUserDefaults. The first thing you’re going to want to do is add this to the AppDelegate.m applicationdidfinishlaunching method: In this tutorial, we will design the in-app settings page, using NSUserDefaults as our way to save the settings, incorporate a reset button to re-shuffle the puzzle, and even allow the user to count the time and number of moves it takes to complete the puzzle. In the first tutorial, we designed the application to shuffle the puzzle, move the pieces around until the puzzle completes, and then show an alert letting the user know they finished. So without further (witty) parenthetical statements, let’s get started! Instead of showing you sound effects in this tutorial, I decided to save them for the last tutorial (Because really, who needs sound effects…). In this tutorial, I’m going to show you how to design an in-app settings page, including UISegmentedControllers, Switches, Timers, and NSUserDefaults, and incorporate a reset button. Welcome Back Everyone! This is the second tutorial of three that will delve into the inner workings of iOS Game Development and (hopefully) show you everything there is to learn about designing and developing an iOS Game from the ground-up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |