开发者

How to add uisearch bar to a tableview using interface builder?

How do we add uisearch bar to a table v开发者_Python百科iew using interface builder?


Well you can't do that using interface builder.

You need to implement the DataSource and Delegater of the UITableView to initialize and add contents to the table and while you are doing that you can add the UISearchBar in a particular cell.

But that is a bad design as such the user wont be able to use search option as he scrolls down.

so instead take my advice add UISearchBar on top of UITableView using IB. Its easy to do and the user will be happy too.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜