开发者

IOS: search a name in a tableview

开发者 https://www.devze.com 2023-03-08 22:48 出处:网络
I have a tableview with 4 rows and in every row there is a name and a description: I make a stupid example:

I have a tableview with 4 rows and in every row there is a name and a description: I make a stupid example:

1 - Apple red 2 - T开发者_Python百科hree green 3 - Home big 4 - Table large

inside this tableview I insert a search bar and when I write inside this search bar I want to show only words that I begin to write.

example: if in the search bar I write "a" I want to see in tableview only "apple red" or if in the search bar I write "t" I want to see in tableview only "three green" and "table large". How can I do it?


Have a look at the TableSearch sample code project. It should show you everything you need: http://developer.apple.com/library/ios/#samplecode/TableSearch/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40007848

0

精彩评论

暂无评论...
验证码 换一张
取 消