Skip to main content

Questions tagged [uikit]

UIKit is the infrastructure framework on which all iOS user interface is built

Filter by
Sorted by
Tagged with
15 votes
1 answer
7k views

IBDesignable UICheckbox

A more up-to-date version of this control can be found on GitHub. One UI control that has always been mysteriously missing from Xcode's interface builder is some sort of checkbox. ...
nhgrif's user avatar
  • 25.3k
10 votes
1 answer
699 views

Finger painting code

I have a very simple view that handles touch events and draws accordingly. It's nothing significant, but it does use a bit more CPU than I would like (35%). Again, it is the bare minimum (<90 lines)...
Josue Espinosa's user avatar
5 votes
1 answer
372 views

Sierpinski Triangle

I am a Java programmer who recently started learning some Swift. I made an app that displays the Sierpinski triangle and adds triangles if the user pans up, and zooms in and out using the pinch ...
Jared's user avatar
  • 711
4 votes
2 answers
7k views

Removing a subview with a subview from a UIView without memory leaks

I made a custom UITextView for vertical Mongolian writing. It is made by subclassing UIView, which has a subview called ...
Suragch's user avatar
  • 405
3 votes
1 answer
3k views

Set a font for a UITextView if the font is nil or not equal to desired font

Main question I am setting a font for a UITextView that is a subview in a custom view. I only set it if the user didn't specify the font size in the Interface Builder. I have the following working ...
Suragch's user avatar
  • 405