|
Hello everyone, I completed the challenge, but it seems to me that my code looks bad. What I don't like:
|
|
I did mine like this...
Mine doesn't check if they have changed the name before, because that shouldn't really matter. It still allows them to change the name again any time they click on the cell, even if they have already changed the name before. It still involves creating 2 separate alert controllers. But I don't really think that is something that needs to be avoided. I didn't use a |
|
Although, looking at my code again now, this way is probably better...
Then it only creates the |
SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.