Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialStepan Davko
Courses Plus Student 171 PointsHow to add searching?
I want to add a search to this project. I have names of universities as a section names and specialities in each section. It is very important to me. I also have an info in each speciality, which is a string. I actually need convert info from textlabel into a NSNumber type and compare it with the search request. (maybe a separate viewcontroller with options for search). This is for filtering specialities with high lowest passing score. You'll help me very much with my course work!
4 Answers
Guillaume Maka
Courses Plus Student 10,224 PointsI think you need to take a look at NSSortDescriptor, NSPredicate, and UISearchDisplayController !
a good start
David Klein
Courses Plus Student 1,456 Pointsyou might want to have a look at this tutorial. http://www.appcoda.com/search-bar-tutorial-ios7/
Stepan Davko
Courses Plus Student 171 PointsThank you, guys, but it is not working for me... I don't know how to make it working =(
David Klein
Courses Plus Student 1,456 Pointsmind sharing the code?
Guillaume Maka
Courses Plus Student 10,224 PointsMaybe could you share your code on github, so we can give you a better answer.
Stepan Davko
Courses Plus Student 171 Pointsok, thanks https://github.com/MRxRadex/AbitHelper.git
It would be great to have filter in speciality, faculty, university, address. And also to make contest (in core data) NSNumber and compare it to users input and show specialities, number of contest of which is lower, than the user input.
Thanks!