D
D
David Koifman2017-08-09 15:21:51
iOS
David Koifman, 2017-08-09 15:21:51

How to add a search function to the application?

I am making a reader application with chapters and topics. There are a lot of them. I want to add word search functions so that the user can search for topics more easily and does not have to scroll through all the sections in search of the desired topic. As I understand it, you need to use textField for this? 67a9b2c6a8fe4c708afebce9eaf750dd.pngWhat do you need to write in the code or something else? The application itself is in Russian. Therefore, the search will be carried out in Russian according to the words to find the topic? How to implement it? and on swift 4.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Korolevskiy, 2017-08-09
@korolevsky_s

TextField, literal translation - text field. A searchController, searchBar, etc. have been created for searching. This is a topic for more than one sentence, so here is a link to a sample code: https://developer.apple.com/library/content/sample...
And don't forget about the documentation. There are also many videos on YouTube on the subject.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question