This document discusses iOS app design and provides examples of using timers, UIViews, and NSMutableArrays. It covers:
- Using timers (NSTimer) for time-based tasks like clocks and stopwatches, and discusses timer accuracy.
- Common operations on UIView objects like tags and UISegmentedControl.
- Storing and accessing data in NSMutableArrays, as in a numbers game.
It then provides code samples for a basic timer, specifying individual timer objects, and accurately measuring elapsed time between points. Overall the document provides an overview and examples of fundamental iOS app components.
This document discusses UIPickerView and NSArray in iOS app development. It includes sections on NSArray classes like NSArray and NSMutableArray, how to initialize and access array objects. It also covers the UIPickerView, UIPickerViewDataSource, and UIPickerViewDelegate protocols. Example projects are described that show how to generate a UIPickerView programmatically or using a XIB file and populate it with array data. Projects also demonstrate handling selection of multiple components and dependent picker views.
The document provides an overview of the topics that will be covered in Class 15 on iOS app software design, including touch, gestures, accelerometer, gyroscope, and camera. Touch topics include touch coordinates, calculating movement direction for swiping. Gesture topics include tap, pan, swipe, pinch, rotation, and long press. Accelerometer and gyroscope examples detect device shaking and orientation. The camera example captures and saves images. Event handling and the four touch methods - touchesBegan, touchesMoved, touchesEnded, touchesCancelled - are also discussed.
This document provides an overview and outline of Class 13 for iOS app software design in Chinese. It discusses topics such as:
- Extracting data from the network
- NSURLConnection
- NSXMLParser
- URL schemes
It provides examples on how to use NSURLConnection to download image files and display download progress, as well as how to use POST methods. It also discusses using NSXMLParser to parse RSS feeds from the network.
This document provides an outline for a class on iOS app design. It includes sections on UISplitViewController, UIPopoverController, and UIPageViewController. The UISplitViewController section includes examples on the basic principles of UISplitViewController and using it with navigation, table views, and data display. The UIPopoverController section includes examples on the basic principles of UIPopoverController and using protocols and delegates. The UIPageViewController section covers its basic principles for a multi-page scrolling app.
This document provides an overview and code samples for creating and handling various common UI elements programmatically in iOS, including:
- UILabel, UIButton, UITextField, UI狠狠撸r, UISwitch, UIStepper, and UIImageView creation and event handling
- Changing background colors and UI element positions using slider values
- Getting input from switches, sliders, text fields and responding to button taps and other events
- Grouping elements together using a containing UIView