4
votes
Form for OTP entry with six single-character text fields
Your solution to this particular problem is fine in its own way. However when it comes to scaling, it will become quite messy. Since I don't see any scope of improvement/tweaking in your approach, I ...
2
votes
Accepted
iOS tableView with two special rows of headers
Defensive programming (never force unwrap, no forced cast, ...) is good
and important to handle "runtime problems" gracefully: Unexpected user
input, failed network connections, I/O errors, and many ...
2
votes
Accepted
UITableView allowing some kinds of requests to be deleted with swipe gestures
In your first implementation you can make deleteAction a constant if you initialize it in all cases of the switch-statement:
...
2
votes
Accepted
Playing a sound depending on the currently displayed flash card image
You shouldn't determine the sound to play from the image displayed. Instead you should use the same piece of information to set both the image ...
2
votes
A quiz to practice some of the notion of the chapter four of app development with swift
First of all I want to mention that I used Swift 4.2/Xcode 10.1 to write this answer.
You should have this extension in your project, ...
1
vote
Damage or Heal based on the buttons you press
not so much but some tiny changes:
DRY
i just would avoid all the self.healthBarView.frame.size.width
and make methods:
...
1
vote
Accepted
Swift UITableViewCell class to show cameras, ratings for a car wash and other information
here just my ideas how to improve your code. maybe in some points i am wrong, but this are the places i would dig into and make it a little better:
1) set Image only once
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cocoa × 33swift × 19
objective-c × 14
ios × 11
swift3 × 4
macos × 3
performance × 2
game × 2
comparative-review × 2
firebase × 2
beginner × 1
programming-challenge × 1
json × 1
random × 1
error-handling × 1
validation × 1
calculator × 1
mvc × 1
event-handling × 1
concurrency × 1
authentication × 1
form × 1
quiz × 1
controller × 1
constructor × 1