yauzz / demo_toolbarsearch Goto Github PK
View Code? Open in Web Editor NEW官方的SearchBar, 基于iPad的演示
官方的SearchBar, 基于iPad的演示
ToolbarSearch ============= This sample shows how to use a search field in a toolbar. When you start a search, a table view displaying recent searches matching the current search string is displayed in a popover. The main view contains a toolbar with a bar button item with a search field as a custom view. If you tap the search field, the view controller presents a popover containing a list of recent searches. The list is stored in user defaults so that it persists between launches of the application, and is managed by the list's table view controller. The recents list is filtered by the current search term. If you select an item from the recents list, the item is copied to the search field and a search executed. Main Classes: APLToolbarSearchViewController A view controller that manages a search bar and a recent searches controller. When the user commences a search, the search view controller presents a recent searches controller in a popover. APLRecentSearchesController APLRecentSearchesController defines a table view controller to manage and display a list of recent search strings. The search strings are stored in user defaults to maintain the list between launches of the application. The view controller manages two arrays: * recentSearches is the array that corresponds to the full set of recent search strings stored in user defaults. * displayedRecentSearches is an array derived from recent searches, filtered by the current search string (if any). The recentSearches array is kept synchronized with user defaults, and avoids the need to query user defaults every time the search string is updated. The table view displays the contents of the displayedRecentSearches array. The view controller has a delegate that it notifies if row in the table view is selected. ======================================================= Copyright (C) 2010-2013 Apple Inc. All rights reserved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.