simple UISearchBar and UITextView app

I'd like to see a tutorial which shows a UISearchBar as well as a UITextView where you type something in the UISearchBar and it appears in the UITextView as you type it.

I've pulled my hair out over this and am now redesigning my app with a text field and button because I can't get my head around UISearchBarDelegate and how it integrates with UISearchBar. Apple has an official example, except that it's very complicated. My post detailing my frustrations can be found here: http://www.iphonedevsdk.com/forum/ip...html#post12603

If anyone could do this screencast, I would highly appreciate it!

Answers


Implement the UISearchBar delegate method: -(void)searchBar :(UISearchBar*)theSearchBar textDidChange :(NSString*)searchText

then just use myTextView.text = searchBar.text whenever that method gets called.

Tariq


Need Your Help

How to let OnClick in ListView's Adapter call Activity's function

android onclick android-listview custom-adapter

I have an Android application with a ListView in it, the ListView will setup fine but now I want a image in the ListView to be clickable. I do this by using 2 classes, the Activity class (parent) a...

Remove right click table arrows firefox

javascript jquery html css firefox

I'm trying to create a context menu for tables using javascript and bootstrap, but when I right click on a table that's in an editable div, I get some arrows that allow the user to add some new r...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.