iphone - How to add UISearchBar in to my tableView programmatically? -
now have 2 mutable array,
1.songsname mutablearray; 2.songurl mutablearray; on songsname mutablearray contains huge collection of songs name list,the names coming url, , songurl mutablearray contains corresponding url of songsname
am using xmlparser retrieve url content,custom cell used displaying content,in custom cell contains 1 label display song name , 1 play button play song want use search bar in tableview now, please me write code
if use search bar in tableview , scrolling time search bar scroll table-view cell, bad see in so answer
and use uisearch bar tableview
and see uisearchdisplaycontroller class refernce
in cellforrowatindexpat , in umberofrowsinsection should test witch tableview displayed , return desired values.
if(tableview == self.searchdisplaycontroller.searchresultstableview){ // search view population } else { // data view population }
Comments
Post a Comment