0

I've a question about best object to use in my App.

I have a three columns UITableView containing a NSString, NSDate, double. I would like to help users filtering and make the easiest query. Using UISearchBar i can easily filter the text but i'm not sure. I would like to have three different type of search. When date is used for exmaple a UIDatePicker. Which is the best way to proceed? Thank you in advance for any reply.

Lochana Ragupathy
  • 4,320
  • 2
  • 25
  • 36
Alessandro Mattiuzzi
  • 2,309
  • 2
  • 18
  • 24

1 Answers1

0
  1)For String  you can use the UISearchBar it will help you to search according to the text entered in it.

  2)For double you can  use the same UISearchBar but you can convert the text which is entered in searchbar as double and proceed filtering with your data.


  3)For NSDate you can give an Option to the user like From Date and To Date so that you can filter and display the records in between the dates
Lochana Ragupathy
  • 4,320
  • 2
  • 25
  • 36