Button & Actions in TableView Cells in Swift 5 (Xcode 12 - 2023)

  Рет қаралды 40,186

iOS Academy

iOS Academy

Күн бұрын

Пікірлер: 59
@Randor10
@Randor10 3 жыл бұрын
Well done. Exactly what I was looking for.
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@NOOBGAMING-vl7uy
@NOOBGAMING-vl7uy 2 жыл бұрын
help a lot thanks for video
@iOSAcademy
@iOSAcademy 2 жыл бұрын
Youre welcome
@haillee695
@haillee695 3 жыл бұрын
Great video! I tried several ways to deal with cell buttons, and this one really saved lots of time. Thanks for keep uploading.
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks!
@evarilci
@evarilci 2 жыл бұрын
my problem is that I used no storyboard or xib, my buttons has no title but image and I am trying to use @objc method to add target.
@mrchumley
@mrchumley Жыл бұрын
Thanks so much for this! I had to tweak it a bit to pass the indexPath rather than title (as my buttons don't have titles), and then update the core data behind the table, but your explanation of the delegate pattern was invaluable.
@ГеоргийИванов-ш2т
@ГеоргийИванов-ш2т 3 жыл бұрын
bro, u r amazing) Once I have a question bout smth you immediately answer it. Huge thanks, appreciate your work
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Happy to help
@Modern-Retelling
@Modern-Retelling Жыл бұрын
Great video!
@iOSAcademy
@iOSAcademy Жыл бұрын
Thanks!
@andresmorenoviteri213
@andresmorenoviteri213 4 жыл бұрын
Great video bro, love the tutorials!
@iOSAcademy
@iOSAcademy 4 жыл бұрын
Thanks! Much appreciated
@wizard9669
@wizard9669 3 жыл бұрын
Thank you! Great tutorial!
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome
@daboja
@daboja 3 жыл бұрын
Thank you. That is an awesome tutorial...
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome!
@mattcomerford3296
@mattcomerford3296 2 жыл бұрын
Great video
@henrybridges4060
@henrybridges4060 3 жыл бұрын
is it possible to have multiple buttons in the cell? if so, would i need to pass through not just title but title1, title2, title3, title4? Great video - thanks
@nitinsoni3452
@nitinsoni3452 3 жыл бұрын
Thanks
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcone
@dodilodi1278
@dodilodi1278 3 жыл бұрын
Well done! Probably, better example would have been if you used UISwitch.
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Thanks
@bitsurfer0101
@bitsurfer0101 3 жыл бұрын
What is the alternative to using an extension (as far as coding style goes)?
@hakilucky5912
@hakilucky5912 3 жыл бұрын
o yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee thank u millllooooooonnnnnn times !
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcome!
@Natena
@Natena Жыл бұрын
Im having hard time, understanding when exactly "private let title" at line 27, gets its correct meaning?
@kevinzetterlind1389
@kevinzetterlind1389 2 жыл бұрын
The title u have as string in the functions inside the cell for me is a CoreData object. How do I go from there? Great videos
@ismayilkarimli
@ismayilkarimli 3 жыл бұрын
Hey man, thanks for a great video. How would I do this programmatically?
@iOSAcademy
@iOSAcademy 3 жыл бұрын
Youre welcone & ill make a video on this
@stevee253
@stevee253 2 жыл бұрын
Great video! How would you change the text of a label in the cell from didTapButton?
@jojuanf9988
@jojuanf9988 4 жыл бұрын
Thank you for the vid. I was able to implement this into my app! Now I have a tableview with a collection view inside of a tableview cell. The collection view cell has a button. Been messing around with this method and can’t seem to figure out how to access the main view controller from the collection view cells button. Any advice on how to do this? Or possibly a video?
@iOSAcademy
@iOSAcademy 4 жыл бұрын
You're welcome! You should use a delegate reference.
@LuizPustiglione
@LuizPustiglione 3 жыл бұрын
Great video. My issue is with the .link. Keep getting the "link' is only available in iOS 13.0 or newer" error. tried the @available(​iOS 13.0, *) with no success. Need to go back to basics.
@Tenly2009
@Tenly2009 3 жыл бұрын
If I have a UIControl that supports tap events - but I want to display it in a tableview or collectionView cell and BLOCK any tap events from reaching it. What is the right way to do that? (I think I tried using the .isUserInteractionEnabled switch on the cell - but then my didSelectCell also stopped working.)
@ulugbeknematjonov566
@ulugbeknematjonov566 4 жыл бұрын
Your videos so useful. do you work TopTechCompany?
@joelbialluch5559
@joelbialluch5559 Жыл бұрын
What if I have different prototype cells?
@Randor10
@Randor10 4 жыл бұрын
Excellent explanation. Just what I wanted. The only thing missing is whether this can be applied to clicking on the cell's built-in Accessory image. I am using an AccessoryType of .Detail and I'd like to be able to click on that and segue to another viewController. any ideas?
@iOSAcademy
@iOSAcademy 4 жыл бұрын
Thanks! And nope, you need custom tappable content
@marioguerrero1311
@marioguerrero1311 3 жыл бұрын
How do you that just programmatically without storyboards or nib files?
@edgob9910
@edgob9910 4 жыл бұрын
hey man Great tutorial.. I have a question how do I change my view to the button that was selected. to add subview like Fruitselection2 or fruitSelction1 etc. thank you
@iOSAcademy
@iOSAcademy 4 жыл бұрын
You would need to use the delegates to call back to that particular view
@ethan7930
@ethan7930 4 жыл бұрын
how do you add indexPath to your delegate pattern?
@iOSAcademy
@iOSAcademy 4 жыл бұрын
Indexpath is a type you can use
@GG-hk5iz
@GG-hk5iz 4 жыл бұрын
Can you please tell how to do with Closure ?
@iOSAcademy
@iOSAcademy 4 жыл бұрын
You can pass a reference of the closure instead of a delegate to call
@boccacini3930
@boccacini3930 4 жыл бұрын
Hello, Your videos are great! I am stuck as my code wont accept the code line: table.register(DiabetesTableViewCell.nib(), forCellReuseIdentifier: DiabetesTableViewCell.identifier)
@iOSAcademy
@iOSAcademy 4 жыл бұрын
Thanks! Whats the error you are getting?
@user-ht1sd1ml7k
@user-ht1sd1ml7k 4 жыл бұрын
Thank you for sharing the wonderful tutorial. i'm near here i would like to know how to show a view controller as a tap screen or pop-up window. //extension ViewConroller: MyTableViewCellDeligate{ func didTapButton(with title: String){ } please share the knowledge :) Peace...!
@iOSAcademy
@iOSAcademy 4 жыл бұрын
You're welcome. To do what you've asked you should use a container controller. I'll make a detailed video on this
@user-ht1sd1ml7k
@user-ht1sd1ml7k 4 жыл бұрын
@@iOSAcademy eagerly waiting for it .. :)
@edgob9910
@edgob9910 4 жыл бұрын
I am at this stage right now did you guys find useful tips?? help me add my subviews please any help?
@johnparker517
@johnparker517 3 жыл бұрын
@@iOSAcademy Wonderful video! Did you ever get the chance to make a video on this? I looked around your channel but didn't find one, but perhaps I just missed it. Cheers!
@jackpitts5561
@jackpitts5561 Жыл бұрын
Great vid, but you went all the way to the end, but didn't show how to update a cell for something like a "thumbs up" button. Recommend adding to this video another minute, and show how the button could change from unshaded to shaded, THEN you'd have a complete video here.
@Dino-qz9bt
@Dino-qz9bt 4 жыл бұрын
Please use SwiftUI😩
@iOSAcademy
@iOSAcademy 4 жыл бұрын
Ive got some follow up vids with swiftUI coming :)
@Meteora597
@Meteora597 3 жыл бұрын
Bu eeee n
Move TableView Cells in Swift 5 (Xcode 11) | 2020
9:50
iOS Academy
Рет қаралды 12 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 22 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 93 МЛН
All useEffect Mistakes Every Junior React Developer Makes
22:23
UICollectionViews in iOS with Compositional Layout
15:25
Sam Meech-Ward
Рет қаралды 6 М.
How to use Auto Layout for beginners in Swift - iOS 2023
13:49
iOS Academy
Рет қаралды 77 М.
Swift for Beginners: Create Collection View in Xcode (iOS - 2023)
20:47
How Fast Can I Fill My Inbox?
13:30
Dev Detour
Рет қаралды 352 М.
Advanced Table View in Swift 5 (Xcode 11, 2020) - iOS Beginners
41:04
24 Xcode Tips in 15 Minutes
15:30
Paul Hudson
Рет қаралды 73 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 22 МЛН