Today I’ve been playing a bit Jetpack Joyride, game is really cool and I noticed one nice detail in game: as you finish game you get option to take a look at gameplay screenshot and if you like it you can save it to your photo album. This gave me an idea to write a […]
Read MoreWe blog on all things iOS
UIGestureRecognizer dependencies
Common sense for gestures detection in iOS programming is to use UIGestureRecognizer class. Gestures you can detect are: tap, pinch, rotation, swipe, pan and long press. To define gesture recognizer you’ll have to use one of UIGestureRecognizer subclasses: UITapGestureRecognizer; UIPinchGestureRecognizer; UIRotationGestureRecognizer; UISwipeGestureRecognizer; UIPanGestureRecognizer; UILongPressGestureRecognizer. It’s possible to create dependencies between gesture recognizers and I’ll show […]
Read MoreUIImageView Quartz tricks
I can see that very often developers in their apps just place image on screen and they do nothing about it. With Quartz framework you can easily add some effects to UIImageView like: borders, rounded corners, shadow, etc. Images with such effects looks much better. In this tutorial I’ll show you how to create UIImageView […]
Read MoreHow to Create UILabel inside of UIScrollView – programmatically
This short tutorial will show you how to programmatically create UILabel inside of UIScrollView. UILabel will contain long text and we’ll set UIScrollView content size to fit UILabel size. Create new project (view based application) and inside your main view controller find method viewDidLoad, tha’s where we going to add our code. First we need […]
Read MoreShuffle NSMutableArray Tutorial: How to Shuffle a Deck of Cards
Most of puzzle games use some kind of shuffle algorithm. For example, memory games would be really boring to play without tiles shuffle before you start playing game, if you solved it once you would remember position of most tiles. Same thing is with card games, before playing game you need to shuffle deck. Very […]
Read More