UICatalog
==========
This sample is a catalog of all the UI elements found in the iPhone's UIKit framework. It is designed to exhibit a large variety of views and controls along with all their varying properties and styles. If you need code to create specific UI controls or views, refer to this sample and it should give you a good head start in building your user interface. In most cases you can simply copy and paste the code snippets you need.
Build Requirements
Mac OS X 10.5.3, Xcode 3.1, iPhone OS 2.0
Runtime Requirements
Mac OS X 10.5.3, iPhone OS 2.0
Using the Sample
Build and run the sample 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.
In most areas of this sample, as you see various UI elements, you will see a corresponding explanation as to where you can find the code. So for example the Buttons page - the gray button will have "ButtonsViewController.m - createGrayButton". This means refer to the ButtonsViewController.m source file and search for the createGrayButton Objective-C method.
Buttons - This UIViewController or page contains various kinds of UIButton controls complete with background images.
Controls - This page contains other miscellaneous UIControl classes helpful in building your user interface including switch, slider page, and progress indicator.
TextFields - This page hosts different kinds of UITextField controls. It also demonstrates how to handle the keyboard, particularly with a text field that are placed in the area where the keyboard appears.
SearchBar - This pages exhibits the UISearchBar control.
TextView - This page exhibits the use of UITextView.
Pickers - This page shows the varying picker style view including UIPickerView and UIDatePicker. UIDatePicker variants include date, time, date & time, as well as a counter. A custom picker is also included in this page.
Images - Shows how you can create a UIImageView containing a group of images used for animations or slide show.
Web - Shows how to properly use a UIWebView and target websites using NSURL class.
Segment - This page adds several types of UISegmentedControl views.
Toolbar - This page shows how to use UIToolbar and adds several kinds of UIBarButtonItems.
Alerts - This page shows how to use UIActionSheet and UIAlertView to display varying kinds of alerts that require user actions. This includes simple alerts, OK/Cancel alerts, and alerts with custom titled buttons.
Transitions - This page shows how to implement view "flipping" and "curl" animations between two different views using a category of UIView called UIViewAnimation.
Localization - You will notice this sample in various places shows you how to localize your string content by using the NSLocalizedString() macro. Each language has a "Localizeable.strings" file and this macro refers to this file when loading the strings.
Packaging List
main.m - Main source file for this sample.
AppDelegate.h/.m - The application's delegate to setup its window and content.
Contants.h - Contains various screen placement constants used across all the UIViewControllers.
MainViewController.h/.m - The front UIViewController containing a UITableView to navigate to all its pages.
ButtonsViewController.h/.m -UIViewController that hosts all the varying UIButtons.
ControlsViewController.h/.m - UIViewController that hosts all the varying UIControls.
TextFieldViewController.h/.m - UIViewController that contains UITextFields and how to use them.
SearchBarController.h/.m - UIViewController that contains a UISearchBar.
TextViewController.h/.m - UIViewController that shows how to use UITextView.
PickerViewController.h/.m - UIViewController that shows all the different kinds of picker controls.
ImagesViewController.h/.m - UIViewController that contains a UIImageView.
WebViewController.h/.m - UIViewController that shows how to use UIWebView.
AlertsViewController.h/.m - UIViewController that hosts all the varying kinds of alerts and action sheets.
SegmentViewController.h/.m - UIViewController that hosts all the varying UISegmentedControls.
ToolbarViewController.h/.m - UIViewController that hosts a UIToolbar and its UIBarButtonItems.
TransitionViewController.h/.m - UIViewController that shows how to flip between two different views.
DisplayCell.h/DisplayCell.m - a commonly used UITableViewCell for displaying and explaining a given UI element.
SourceCell.h/SourceCell.m - a commonly used UITableViewCell for explaning "where" to find the code for a given UI element.
CellTextField.h/CellTextField.m - A type of UITableViewCell used for containing UITextFields.
CellTextView.h/CellTextField.m - A type of UITableViewCell used for containing UITextViews.
Changes from Previous Versions
1.0 - First release
1.1 - Updated the user interface layout to show proper use or proper context in using the UIKit controls and views.
1.2 - Changes due to API updates in the Beta 3 SDK: reusable UITableView cells.
1.3 - Updated for Beta 4, changed to use Interface Builder xib files, removed un-needed QuartzCore framework, added Toolbar view for UIToolbar and UIBarButtonItems, added additional UIButtonTypes, added UISearchBar.
1.4 - Updated for Beta 5, renamed some classes.
1.5 - Beta 6 Release, updated to use xib file for MainViewController, fixed bad blur effect on UIView classes by properly rounding of coordinates, introduced "UIViewAnimationTransitionCurlUp/UIViewAnimationTransitionCurlDown" UIView transitions, adopted UITextField's "leftView" property.
1.6 - Minor UI modifications, changed bundle identifier.
1.7 - Improved custom UIPicker, Updated for and tested with iPhone OS 2.0. First public release.
Copyright (C) 2008 Apple Inc. All rights reserved.
没有合适的资源?快使用搜索试试~ 我知道了~
iphone界面官方例子
共209个文件
png:45个
o:44个
m:25个
需积分: 15 146 下载量 142 浏览量
2009-04-02
14:56:59
上传
评论 1
收藏 2.36MB RAR 举报
温馨提示
iphone界面官方例子,里面包含基本所有iphone界面有关的控件的使用,button,label等等
资源推荐
资源详情
资源评论
收起资源包目录
iphone界面官方例子 (209个子文件)
._build 4KB
._UICatalog.build 4KB
CodeResources 2KB
CodeResources 1KB
control 512KB
UICatalog~.dep 11KB
UICatalog.dep 11KB
UICatalog.dep 11KB
UICatalog~.dep 11KB
Constants.h 3KB
EditableTableViewCell.h 3KB
TextFieldController.h 3KB
PickerViewController.h 3KB
ButtonsViewController.h 3KB
ControlsViewController.h 3KB
AlertsViewController.h 3KB
AppDelegate.h 3KB
CellTextField.h 3KB
ToolbarViewController.h 3KB
DisplayCell.h 3KB
TextViewController.h 3KB
CellTextView.h 3KB
MainViewController.h 3KB
SourceCell.h 3KB
CustomView.h 3KB
WebViewController.h 3KB
TransitionViewController.h 3KB
SearchBarController.h 3KB
ImagesViewController.h 3KB
SegmentViewController.h 3KB
CustomPicker.h 2KB
pbxindex.header 24B
UICatalog.hmap 2KB
UICatalog.hmap 2KB
UICatalog-project-headers.hmap 1KB
UICatalog-project-headers.hmap 1KB
UICatalog-own-target-headers.hmap 793B
UICatalog-all-target-headers.hmap 793B
UICatalog-own-target-headers.hmap 793B
UICatalog-all-target-headers.hmap 793B
UICatalog-generated-files.hmap 121B
UICatalog-generated-files.hmap 121B
scene1.jpg 46KB
scene1.jpg 46KB
scene1.jpg 46KB
scene3.jpg 23KB
scene3.jpg 23KB
scene3.jpg 23KB
scene4.jpg 15KB
scene4.jpg 15KB
scene4.jpg 15KB
scene5.jpg 15KB
scene5.jpg 15KB
scene5.jpg 15KB
scene2.jpg 12KB
scene2.jpg 12KB
scene2.jpg 12KB
UICatalog.LinkFileList 3KB
UICatalog.LinkFileList 3KB
TextFieldController.m 17KB
ButtonsViewController.m 15KB
PickerViewController.m 15KB
ToolbarViewController.m 13KB
ControlsViewController.m 12KB
AlertsViewController.m 11KB
MainViewController.m 9KB
SegmentViewController.m 8KB
TransitionViewController.m 7KB
TextViewController.m 7KB
ImagesViewController.m 6KB
WebViewController.m 6KB
CustomPicker.m 5KB
CellTextField.m 5KB
DisplayCell.m 5KB
._AlertsViewController.m 4KB
._PickerViewController.m 4KB
._ButtonsViewController.m 4KB
AppDelegate.m 4KB
SearchBarController.m 4KB
CustomView.m 4KB
CellTextView.m 4KB
SourceCell.m 3KB
EditableTableViewCell.m 3KB
main.m 3KB
embedded.mobileprovision 7KB
jerryzheng.mode1v3 43KB
MainWindow.nib 3KB
MainWindow.nib 3KB
TextFieldController.o 75KB
TextFieldController.o 75KB
ButtonsViewController.o 63KB
ButtonsViewController.o 62KB
ControlsViewController.o 62KB
ControlsViewController.o 61KB
MainViewController.o 60KB
MainViewController.o 60KB
PickerViewController.o 60KB
AlertsViewController.o 59KB
AlertsViewController.o 59KB
PickerViewController.o 57KB
共 209 条
- 1
- 2
- 3
资源评论
yetu2005
- 粉丝: 2
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python实现的自动化办公项目.zip
- 基于python实现的基于PyQt5和爬虫的小说阅读系统.zip
- 机械设计整经机上纱自动化sw20非常好的设计图纸100%好用.zip
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功