PDA

View Full Version : Search UITableView




harryiphonedev
Aug 18, 2010, 07:57 AM
UITableView : I am trying to develop a Search in UITableView. I parse data from XML file and move them to UITableView List. When User selects a particular row the details of the selected row gets displayed in a another View.

This is working fine in normal conditions. When I search the UITableView using a Search Bar the results get filtered. When I select one row from the filtered results the index is always 0 which means only the first record in UITableView is selected and moving to the child view with the details of the first record only. Even If I select the 5th row it selects the first row only. Could someone please suggest a good method where I can achieve the same.



robbieduncan
Aug 18, 2010, 08:18 AM
Have you looked at Apple's sample code (https://developer.apple.com/iphone/library/samplecode/TableSearch/Listings/MainViewController_m.html#//apple_ref/doc/uid/DTS40007848-MainViewController_m-DontLinkElementID_6)?