Problem I have a tableView, which auto locates back at indexPath after user has dragged it. In other words, bouncing […]
Tag: uikit
Change level button’s image
Problem There are 12 buttons, and each of them has 3 options for selecting pictures, depending on the data. It […]
IBDesignable UICheckbox
Problem A more up-to-date version of this control can be found on GitHub. One UI control that has always been […]
Sierpinski Triangle
Problem I am a Java programmer who recently started learning some Swift. I made an app that displays the Sierpinski […]
Draw an arc based on a given percentage
Problem I wanted to create a class that would allow me to draw an arc representing a percentage of progress, […]
UIViewController without interfacebuilder
Problem I have a template I’ve been using with Swift for UIViewController and UIView subclasses without a .xib or .storyboard. […]
iOS: prettify random color for debugging
Problem iOS: prettify random color for debugging I used to use random color to debug, from colors I like extension […]
A helper class for creating icons from a PNG image and colour in Swift
Problem I have made a helper struct in Swift that creates circular icons from a PNG image (a white icon […]
Core Data Wrapper
Problem I built a wrapper in Swift to practice CoreData. My question is more general, I hope this is acceptable. […]
Extending UITableViewCell to preserve UIView background color when selecting the cell
Problem When a UITableViewCell has subviews with background color set, when setSelected(_: animated:) gets called, all the views are made […]
- 1
- 2