How to filter tableview data on textfield editing - IOS

Viewed 2080

I created tableview using array and one textfield. On textfield editing tableview data will be sort and filter according to textfield input. In case of table view has a data about states, If I input 'A' in textfield, all tableview data will be sort and display all state names starting with alphabet 'A'. Please tell me logic for this.

2 Answers
Related