readme.txt

来自「一个用于下来菜单的xcode的手机程序。」· 文本 代码 · 共 39 行

TXT
39
字号
DrillDownSaveDemonstrates how to restore the user's current location in a drill-down list style user interface and restore that location when the app is relaunched.  The drill-down or content hierarchy is generated from a plist file called 'outline.plist'.The sample stores the user's location in its preferences file using NSUserDefaults.One important factor this sample illustrates in restoring the proper UIViewController stack by telling its UINavigationController to push each level without animation like so:	[[self navigationController] pushViewController:level3ViewController animated:NO];Build RequirementsMac OS X 10.5.3, Xcode 3.1, iPhone OS 2.0Runtime RequirementsMac OS X 10.5.3, iPhone OS 2.0Using the SampleBuild and run AppPrefs using Xcode 3.1. To run in the simulator, set the Active SDK to Simulator. To run on a device, set the Active SDK to the appropriate Device setting.  When launched navigate through various items in the tree hierarchy.  Press the home button and re-launch DrillDownSave.  The app should return you to the same level from the previous launch.Packaging Listmain.m - Main source file for this sample.AppDelegate.h/.m - The application' delegate to setup its window and content.Level1ViewController.h/.m - The top-most view controller of the tree hierarchy.Level2ViewController.h/.m - The second level view controller of the tree hierarchy.Level3ViewController.h/.m - The third and last level view controller of the tree hierarchy.LeafViewController.h/.m - Leaf item view controller for items residing at level 3.outline.plist - the dictionary or outline of the view level hierarchy used in populating the drill-down list.Changes from Previous Versions1.0 - First release1.1 - Updated for and tested with iPhone OS 2.0. First public release.Copyright (C) 2008 Apple Inc. All rights reserved.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?