I agree please add a second part to this tutorial, and show us how to save the switch state to user defaults etc. I'm sure we can take the entire array of models and save it to user defaults and the load the current state when we come back into the app. I would love to know your preferred way to do this. Thanks!
@socialengineer3 жыл бұрын
Why do you manually create the frame? Why not use NSConstraintLayout?
@Tenly20093 жыл бұрын
Damn. Half a video. Ugh. This was a great first half - but to complete it - I would have liked to have seen how you use the handler property and for the settings that have multiple options - how you would present those multiple options.... would you reuse the existing tableView - or would you create additional table views to display the options? For example, let’s say one of them wanted you to specify a number between 1 and 5 and another provided a list of Wi-Fi access points. How would you display them and how would you pass the selected data back to the main settings controller? If you have a part 2 to this video - please share the link!
@kimdaegyum3 жыл бұрын
For the switch at the end, you can also set the cell's accessory view to the switch you made. No need to configure the cgrect.
@Landon_Hughes2 жыл бұрын
dope!! thank you. I'm really not a fan of using frames and your method really cuts down on math and code.
@dambar0114 жыл бұрын
Hi Afraz , First i would like to congratulate you for 1M plus views and thank you for this content , always learning from you.
@iOSAcademy4 жыл бұрын
thanks! It gives me a lot of joy
@emiljahshan4 жыл бұрын
I tried adding a target for the uiswitch but its not being called😞 Can you show how its done? Also, if i have multiple switches, how do i know which one was flipped? (And call the appropriate function). Love your videos!
@alex7413213 жыл бұрын
Hey did u manage to make the switch working?
@emiljahshan3 жыл бұрын
@@alex741321 yes ill add snippet code in a bit
@alex7413213 жыл бұрын
@@emiljahshan I added a mySwitch.addtarget in configure and it worked
@truecoordinates20073 жыл бұрын
@@emiljahshan What code did you use?
@natalyli39783 жыл бұрын
@@truecoordinates2007 i would like to know too!
@Antonezzio3 жыл бұрын
Thanks, your video helped me do my homework. Subscribed and will watch your videos. If I need to add the name of the Wi-Fi network, where do I need to insert the text?
@iOSAcademy3 жыл бұрын
Thanks!
@Antonezzio3 жыл бұрын
@@iOSAcademy if i need name of wi-fi, will i insert one more title in "SettingsOption" ?
@ryangaudet357 Жыл бұрын
This was such a useful tutorial. I create a couple of different tablecell models that I'm using. An odd issue though is that if I create a TableCell model with only a label and handler, it appears and disappears when scrolling through the table view. All other models don't do this. I ended up just adding the icon and that eliminates the problem. Any ideas as to why that is?
@freerideinc.22364 жыл бұрын
Great content! Can you make a Video how to place a searchbar in tableview? ✌🏼
@iOSAcademy4 жыл бұрын
Thanks! And sure
@MaxLK16093 жыл бұрын
Hey Afraz, Thanks. Could you please let me know if you made the video about pulling out the versions that you talked about it in the end of this video?
@vaiftech3 жыл бұрын
Hey , how do you implement a if is on as well as is off else statement ? I’m having trouble with that
@nartiscoding2 жыл бұрын
I used your tutorial to create table view in my app, and now I got an issue with switch cell, how can I pass an action to switcher and execute it when the state cahnges?
@iOSAcademy2 жыл бұрын
Create a delegate instance & protocol
@nartiscoding2 жыл бұрын
@@iOSAcademy Thank you for your answer! Your spotify course is awesome btw! Ok, I tried to do that, but in my case I have a custom view cell with date picker. If I write protocol methods in in view controller, how can I get access to the date picker which is in my custom view cell?
@hanswiggenhauser51324 жыл бұрын
Hey, I really liked the video and it helped me moving forward with my own App. However, for me one thing is unclear. If I want to use the Switch Cell to directly change UserDefaults, where should that be done? I am struggling a bit as I don't have an IBOutlet for the switch. :)
@alex7413213 жыл бұрын
Just add mySwitch.addtarget in configure to call an objc function that is triggered after the switch
@nurjanababakirov69524 жыл бұрын
Please make a selection menu like in iOS.
@iOSAcademy4 жыл бұрын
Coming soon
@sovrinfo2 жыл бұрын
Thanks!
@iOSAcademy2 жыл бұрын
You’re welcome
@fahmizailani18794 жыл бұрын
Is it possible to reload the data?
@iOSAcademy4 жыл бұрын
Yes, just call tableView.reload()
@lazaroambrosio56464 жыл бұрын
Nice video! I subscribed as coder level. How can I join the slack channel and GitHub repo for the source code?
@iOSAcademy4 жыл бұрын
Whats your github username? Ill add you
@lazaroambrosio56464 жыл бұрын
@@iOSAcademy My GitHub username Lazaro97 Thank you!
@iOSAcademy4 жыл бұрын
added
@lazaroambrosio56464 жыл бұрын
@@iOSAcademy thanks 😁
@Patxihj3 жыл бұрын
Thanks for the video! :) It has been very helpful
@iOSAcademy3 жыл бұрын
Youre welcome
@Ikona731 Жыл бұрын
Thank you very helpful, I assumed this is what I wanted to do to build the view I needed to create. Now I just need to build it in storyboards. I only have been coding for a few months, so I find your videos very helpful, but sometimes I get confused because I'm still so new or lost because of the presentation speed. So I just need to slow it down to 1/2 and watch it over again. But overall thank you for the concepts. Building a chat app next, and figure out how to add this drop down button like these comment cells have on the right side, and adding these concepts to it.
@artemshuliak85854 жыл бұрын
Thanks for the tutorial! Been subscribed for a while, and every video you manage to amaze me :)
@iOSAcademy4 жыл бұрын
Your welcome!
@robertwood95764 жыл бұрын
Very Nice! Can you make a video on how to use MapTileOverlays? Trying to add radar to an app and i cannot find any video showing it. It seems like youtube teachers avoid it when making weather apps
@mikmikmikdota3 жыл бұрын
Excellent man! I hope you make tutorials on sound recording like in whatsapp or telegram UI 😊 keep it up man! Looking forward on your journey!!
@iOSAcademy3 жыл бұрын
Thanks!
@ZhouHaibo3 жыл бұрын
Thanks! This really showcase the powerful of closure in Swift, though we need to create all the present/ opened VC in that closure. Is that would be better to use "Anchors" to set the layout instead of frame. I have watched a bunch of your videos, it seems to use frame is sort of tricky to calculate the relative distance even you are an experienced dev.
@kylermalachi96443 жыл бұрын
you all prolly dont care at all but does any of you know a way to log back into an Instagram account?? I was dumb forgot my password. I love any assistance you can offer me
@alvarohendrix51493 жыл бұрын
@Kyler Malachi Instablaster =)
@kylermalachi96443 жыл бұрын
@Alvaro Hendrix thanks for your reply. I found the site through google and I'm trying it out now. Takes quite some time so I will reply here later when my account password hopefully is recovered.
@kylermalachi96443 жыл бұрын
@Alvaro Hendrix It worked and I now got access to my account again. I am so happy! Thanks so much, you really help me out!
@alvarohendrix51493 жыл бұрын
@Kyler Malachi No problem =)
@Tenly20093 жыл бұрын
I would very much like to see a tutorial video that shows how to (securely) implement and manage a virtual currency for an app. Instead of just code that shows how to program it, I’d like you to address how/where to store the virtual currency balance (securely) so a user could use the currency on multiple devices. I assume Firebase would be an okay choice? If so - some advice on how to create a profile for a user - including what information would be good to store. What value to use as their “id” in my database - specifically using “Sign in with Apple”. In the above scenario, the virtual currency would be purchased using consumable In-App purchases. Might be nice if you covered subscriptions as well - but that’s not as urgent for me. This little project might make a good 3 or 4 part series for you.... PS: Could you please post it by end of day on this coming Sunday? 😆
@Frank-tm9uv4 жыл бұрын
Hi very nice tutorial and also i like your tuts ! It would be nice if you could dive a bit "deeper" into the stuff and and always scratch only on the surface. That means you are explaing very good how to make the settings screen but you are not talking about how to take action or how to handle the clicks and where to save the values wenn making a settings page. Maybe Userdefaults ? or sqlite or whatever. Also an opposite video would be nice how to make this possible via Storyboard and also how to handle the actions. I hope you understand what i mean. This is not a bad critic ! Just proposals. It is a hard nut for newbies to make everything programatically at the beginning. Storyboard is a bit easier (my opintion) ..Greets Frank
@30guarino4 жыл бұрын
Frank it seems as though storyboards are either going to be a thing of the past or obsolete. SwitUI is the "new girl in town" so the fact that Afraz is doing UIKit tutorials is great especially programmatically for us. He may start losing viewer interest if he does tutorials in storyboards.....Good Luck and Merry Christmas!
@ricolamoretti45154 жыл бұрын
Please zoom in a bit it’s so small
@iOSAcademy4 жыл бұрын
Good feedback. Dont forget to subscribe for more
@arnoczkyzoltan6158 Жыл бұрын
Is it a fact that Apple doesn't implemented a "Form Controller" and you have to implement it yourself? Uhh ...
@iOSAcademy Жыл бұрын
Correct
@KimbrellBrad2 жыл бұрын
Would love to see this in SwiftUI as well. One challenge for me is how to refer to the switch in a ForEach() loop along with the index of the row. The $Binding looping is what I am having trouble with. Thanks for a great video and very timely for me!
@trollol_3 жыл бұрын
google "uptalk"
@yuno33644 жыл бұрын
Consider like button destroyed. TIP: Get into SwiftUI instead of UIKit, that's what everyone is searching for these days, thanks again!
@iOSAcademy4 жыл бұрын
Thanks for the feedback!
@catschrodinger61233 жыл бұрын
Not quite. It is not possible to keep backward compatibility with old iOS versions using Swift UI. We at least think, that still need it till iOS 10.2 for example.
@blackjackblackjack51124 жыл бұрын
not good memories of tableview :)
@iOSAcademy4 жыл бұрын
Haha the scary past
@yokih94504 жыл бұрын
Nice. I subscribed as coder level. Where is GitHub repo for the source code? Github username: yyokii