-
What I Learned About SpriteKit, Part I
I got into SpriteKit wanting to make a 2D game. A very simple game, in fact — you could play it with one finger 👆! I watched the WWDC SpriteKit demo and it seemed to suite my simple needs perfectly. …
-
Simple gesture recognition
You can easily add gesture recognition to your app either by dragging and dropping a recognizer onto your storyboard or entirely through code. …
-
Passing data between view controllers
The first time I tried to use a table view this problem came up almost immediately: how do I tell the detail view which cell I tapped on? As it turned out, there are several ways of doing this and it doesn’t matter if you’re using a table view or a simple button. …
-
Automatic font size in UILabel
When you use a
UILabel
to display a variable amount of text sometimes you want it to increase or decrease the font size to either fit more text or fill the label with a short snippet. …