TableSearch
This sample demonstrates how to use the UISearchDisplayController object in conjunction with a UISearchBar, effectively filtering in and out the contents of that table. If an iPhone/iPod Touch application has large amounts of table data, this sample shows how to filter it down to a manageable amount if memory usage is a concern or you just want users to scroll through less content in a table.
It shows how you can:
- Create a UISearchDisplayController.
- Use the new scopes on UISearchBar with a search display controller.
- Manage the interaction between the search display controller and a containing UINavigationController
(there is no code for this -- the navigation bar is moved around as necessary).
- Return different results for the main table view and the search display controller's table view.
- Handle the destruction and re-creation of a search display controller when receiving a memory warning.
Build Requirements
iOS SDK 4.0.
Runtime Requirements
iOS 4.0.
Using the Sample
Build and run TableSearch using Xcode. 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 tap the search field and as you enter case insensitive text the list shinks/expands based on the filter text. An empty string will show the entire contents. To get back the entire contents once you have filtered the content, touch the search bar again, click the clear ('x') button and hit cancel.
Packaging List
AppDelegate.{h,m} - The application's delegate to setup its window and content.
MainViewController.{h,m} - Manages a table view to display a list of products, and manages a search bar to filter the product list.
Product.{h,m} - A simple model file to represent a product with a name and type.
main.m - Main source file for this sample.
Changes from Previous Versions
1.5 - Upgraded project to build with the iOS 4 SDK.
1.4 - Fixed problem with saving state during low memory warnings.
1.3 - Updated UISearchBar and UISearchDisplayController as nib objects.
1.2 - Upgraded to use UISearchDisplayController and iPhone OS 3.0.
1.1 - Minor user interface upgrades, no longer using UINavigationController; UISearchBar takes it's place.
1.0 - Updated for and tested with iPhone OS 2.0. First public release.
Copyright (C) 2008-2010 Apple Inc. All rights reserved.
没有合适的资源?快使用搜索试试~ 我知道了~
Iphone TableSearch实例,Iphone搜索功能
共66个文件
png:10个
pbxbtree:8个
hmap:5个
5星 · 超过95%的资源 需积分: 9 9 下载量 122 浏览量
2010-12-29
16:08:13
上传
评论
收藏 737KB ZIP 举报
温馨提示
Iphone TableSearch实例,下列列表的搜索内容随时输入搜索条件的变化而变化
资源推荐
资源详情
资源评论
收起资源包目录
TableSearch.zip (66个子文件)
TableSearch
TableSearch.xcodeproj
shulianyong.mode1v3 40KB
shulianyong.pbxuser 8KB
project.pbxproj 14KB
AppDelegate.h 3KB
MainViewController.h 3KB
Product.m 3KB
en.lproj
MainWindow.xib 7KB
MainView.xib 11KB
ReadMe.txt 2KB
main.m 3KB
Product.h 3KB
build
TableSearch.build
TableSearch.pbxindex
decls.pbxbtree 145KB
cdecls.pbxbtree 145KB
symbols0.pbxsymbols 617KB
imports.pbxbtree 8KB
subclasses.pbxbtree 2KB
refs.pbxbtree 110KB
files.pbxbtree 3KB
strings.pbxstrings
control 256KB
strings 308KB
pbxindex.header 24B
protocols.pbxbtree 2KB
categories.pbxbtree 1KB
Debug
TableSearch.build
build-state.dat 3KB
TableSearch~.dep 2KB
TableSearch.dep 2KB
build-state~.dat 3KB
Debug-iphonesimulator
TableSearch.build
Objects-normal
i386
MainViewController.o~> 0B
TableSearch.LinkFileList 544B
Product.o 9KB
AppDelegate.o 50KB
MainViewController.o~$ 56KB
main.o 6KB
MainViewController.o 56KB
MainViewController.o~? 36B
TableSearch-all-target-headers.hmap 793B
build-state.dat 30KB
TableSearch~.dep 4KB
TableSearch.dep 4KB
TableSearch-generated-files.hmap 121B
TableSearch.hmap 2KB
TableSearch-own-target-headers.hmap 793B
TableSearch-project-headers.hmap 889B
build-state~.dat 30KB
Debug-iphonesimulator
TableSearch.app.dSYM
Contents
Resources
DWARF
TableSearch 73KB
Info.plist 595B
TableSearch.app
Icon-Small@2x.png 1010B
TableSearch 29KB
en.lproj
MainWindow.nib 964B
MainView.nib 2KB
Icon.png 1007B
Icon-Small.png 918B
Icon@2x.png 1KB
Info.plist 636B
PkgInfo 8B
iTunesArtwork.png 5KB
Info.plist 905B
MainViewController.m 8KB
AppDelegate.m 4KB
.DS_Store 6KB
Images
Icon-Small@2x.png 1010B
Icon.png 1007B
Icon-Small.png 918B
Icon@2x.png 1KB
iTunesArtwork.png 5KB
Prefix.pch 88B
共 66 条
- 1
资源评论
- lwncat2012-11-02真机测试通过,很好用。tablesearch的典型实例。
neil
- 粉丝: 19
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于STM8S103F3P6+STM8S207C8T6+STM32F103 单片机三合一最小系统开发板硬件(原理图+PCB)工程
- 基于C语言实现的打印杨辉三角
- 基于ASIO的插件式服务器,支持TCP,UDP,串口,Http,Websocket统一化的数据接口,隔离开发人员和IO之间的操作
- stm32 usb接口通信
- Chessmate是一款完全免费的国际象棋学习软件,支持引擎分析,学开局、残局、棋书解读、大数据分析等功能
- 总结整理的Android面试Java基础知识点面试资料精编汇总文档资料合集.zip
- .android_lq
- FDN5632N-VB一款SOT23封装N-Channel场效应MOS管
- 毛老板-2404250902.amr
- Java类加载流程(双亲委派)流程图.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功