How to add a Search Bar to your Table View | Using UISearchBar | Swift 5 in Xcode 11

How to add a Search Bar to your Table View | Using UISearchBar | Swift 5 in Xcode 11

Ajay Gandecha

4 года назад

28,679 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@vyankateshshivnikar7932
@vyankateshshivnikar7932 - 02.08.2022 15:19

Nice video

Ответить
@rustemmanafov685
@rustemmanafov685 - 01.08.2022 15:36

Perfect

Ответить
@marvinmusk543
@marvinmusk543 - 19.07.2022 02:51

Hey! thank you, very simple and easy to understand. Do you have something similar but with only a search bar a button and the data is stored in the back not showing? Thanks again!!!

Ответить
@josuecruz0921
@josuecruz0921 - 14.07.2022 01:12

Thanks for the tutorial Ajay 😀

Ответить
@hiba60164
@hiba60164 - 01.04.2022 05:08

You are such a great teacher. Thank you

Ответить
@yuthfight
@yuthfight - 29.03.2022 12:41

Really love your tutorial, Thank you!

Ответить
@easthastings6919
@easthastings6919 - 04.08.2021 14:19

such a quality video. thaks mate

Ответить
@SwimnBird
@SwimnBird - 28.07.2021 07:48

Thankyou AJ!!
I have a question though, if you had selectable rows, how would you make sure it didn't mix up the selections from it's default arrangement vs when the search-bar is filtering items in rows?

Ответить
@annhuang2766
@annhuang2766 - 20.07.2021 23:13

very clearly every step I will keep follow your video

Ответить
@alfiankhaulany5326
@alfiankhaulany5326 - 01.06.2021 00:19

Great explaination

Ответить
@user-tw4ut5kl4z
@user-tw4ut5kl4z - 25.03.2021 11:21

In that case, is search bar one of the table cells? Or it is table header
P.S. Very clear explanation, ty so much

Ответить
@n3o999
@n3o999 - 28.02.2021 19:22

Hi, How can I search inside a var city: [LocationData]?  I need to search only town
struct LocationData: Codable { let province: String? let town: String? let code: String? }

Ответить
@bitsurfer0101
@bitsurfer0101 - 24.02.2021 20:20

How do you add a spacer at the top of the table so that you have a little bit of space between the navigation bar and the table?

Ответить
@mattcomerford3296
@mattcomerford3296 - 16.02.2021 19:47

Thank you! Great video

Ответить
@gpetty599
@gpetty599 - 17.01.2021 12:24

BROOO!! Thank you so much! I just came from another tutorial that I was so lost in. You explained everything perfectly! I loved this video. Honestly, this is one of the tutorials on programming I've seen that actually made sense to me HAH. Thank you Jay!

Ответить
@NicolasMeseguer
@NicolasMeseguer - 14.01.2021 21:08

I have no words, ty.

Ответить
@kaideumers6102
@kaideumers6102 - 25.12.2020 16:07

Can't you just use a .filter on your data array? Seems cleaner than looping with an if statement

Ответить
@1100Ghost0011
@1100Ghost0011 - 20.12.2020 19:24

Thank you so much. Great explanation.

Ответить
@timgorer4141
@timgorer4141 - 17.12.2020 07:34

Keep it up! :)

Ответить
@thermos9875
@thermos9875 - 05.12.2020 00:46

How would I go about this when searching for objects parsed by a JSON file rather than Strings? When checking to see if my array contains the value being searched for I am unable to use the .contains method since the value im searching for is not a String. Any help? lol

Ответить
@angelgabrielotinmilano6272
@angelgabrielotinmilano6272 - 19.11.2020 23:21

Your teaching skills are great! Good content, this helped me a lot!

Ответить
@harshlondhekar7656
@harshlondhekar7656 - 19.11.2020 21:02

I have 4 labels in my cell and need to search a particular cell via only one label text, how can I do so?

Ответить
@KDCloudy
@KDCloudy - 08.11.2020 16:41

Great work bro. Saved my deadline haha

Ответить
@DarthKreo
@DarthKreo - 05.11.2020 16:28

Great video! Integrated in table with alphabet sort, was not to easy but work well! =)

Ответить
@synagridas13
@synagridas13 - 05.11.2020 02:52

Thank you! Very useful

Ответить
@CodeWithCal
@CodeWithCal - 02.11.2020 13:09

Nice

Ответить
@terentij
@terentij - 29.10.2020 15:10

You have great communications skills and your thoughts are clear and focused. Thank you for this video. Great job.

Ответить
@karanmehra9455
@karanmehra9455 - 29.10.2020 14:34

why are you not add github project link to the description ?

Ответить
@hustlas4ever
@hustlas4ever - 28.10.2020 06:55

Thank you!

Ответить
@thanht.7897
@thanht.7897 - 18.10.2020 11:42

super explanation Ajay, thank you !

Ответить
@safajemai7073
@safajemai7073 - 10.10.2020 01:33

I still did not finish the tutorial but so far I really like your way of explaining! Thank you !! :)

Ответить
@stevesneller125
@stevesneller125 - 06.10.2020 18:05

EXCELLENT!

Ответить
@theta_trader2767
@theta_trader2767 - 30.09.2020 06:11

I'm learning swift and this was exactly what I needed for a project I'm working on. Clear, concise and easy to follow. Thanks!

Ответить
@tingbecker8102
@tingbecker8102 - 29.09.2020 04:55

Thank you so much for this video!! Definitely helped me a lot with my project. You made it super simple, clear and easy to follow. Definitely subscribing and I can't wait to learn more from you !

Ответить
@rickybunnicelli9517
@rickybunnicelli9517 - 17.09.2020 23:15

Great video! I am having some trouble though. I am loading my struct into my tableViewController with let users = DataLoader().userData. My problem is that i cannot assign a variable to the name property in my struct. I successfully loaded my tableView and have a segue when the cell is clicked with the assoiciated users information with cell.textLabel?.text = users[indexPath.row].name. Just need help configuring the searchBar function since there is no array of names. I guess my question would be, how do i create an array with just the name property from my struct?

Ответить
@user-bp1rc9ny9t
@user-bp1rc9ny9t - 15.09.2020 09:48

Thanks Ajay.

Ответить
@osama6795
@osama6795 - 11.09.2020 00:45

Thank you, but its a very simplified example. What if i have real data i need to search for a name of a shop and populate the cell with that shops specific data?

Ответить
@solar679
@solar679 - 06.09.2020 00:37

thank you so much.

Ответить
@DavidBobSmith
@DavidBobSmith - 30.08.2020 06:45

Hi Ajay, my name is David and I need your help if you don't mind. At the end of the code, " if searchText == "" {" At the end there is "use of unresolved 'searchText'. Same thing for another bit of code. That is: "if fruit.loweredcased().contains(searchText.loweredcased()) {". I would really appreciate your help if you can. Please and thank you. You are doing great by the way. Keep up the videos.

Ответить
@shubhamkhare3825
@shubhamkhare3825 - 29.08.2020 10:01

Thanks

Ответить
@programacion7344
@programacion7344 - 19.08.2020 15:08

Please, more videos

Ответить
@programacion7344
@programacion7344 - 19.08.2020 10:55

Thank you for your video.

Ответить
@baranbaltaci
@baranbaltaci - 14.08.2020 14:29

thanks, how can I do this with json data?

Ответить
@George-yk9xi
@George-yk9xi - 12.08.2020 13:06

Awesome tutorial, I don't see the table Content when the App is initially loaded, but I start seeing it when I first type in the search Bar..Do you have a solution?

Ответить
@vteckickedin2365
@vteckickedin2365 - 02.08.2020 13:55

thanks very helpful

Ответить
@pepa007
@pepa007 - 31.07.2020 19:52

thank you

Ответить
@yo3495
@yo3495 - 21.07.2020 15:43

easy to follow as a beginner :)

Ответить
@castrox605
@castrox605 - 08.07.2020 07:50

great tutorials! can't wait to see more contents about iOS

Ответить
@CryptUK
@CryptUK - 27.06.2020 00:35

nice work:) thanks from russia:)))

Ответить
@jintaoli8534
@jintaoli8534 - 19.06.2020 12:41

To be honest, this is the best tutorial of searchbar so far. Keep posting, dude!

Ответить