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 trial

iOS Build a Diary App Using Core Data Custom Detail View Controller Using Core Location

How 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
PLUS
Guillaume Maka
Courses Plus Student 10,224 Points

I think you need to take a look at NSSortDescriptor, NSPredicate, and UISearchDisplayController !

a good start

you might want to have a look at this tutorial. http://www.appcoda.com/search-bar-tutorial-ios7/

Thank you, guys, but it is not working for me... I don't know how to make it working =(

mind sharing the code?

Guillaume Maka
Guillaume Maka
Courses Plus Student 10,224 Points

Maybe could you share your code on github, so we can give you a better answer.

ok, 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!