Create iOS 7 blur effect with latest APIs
Blurred overlay effect itself was at the table for ages, though, incorporating it in iOS 7 gave a huge shot to it’s popularity. Creating an iOS 7 blur effect basically involves two step, create a snapshot of the underlying content of some context, and apply a blur on it. There are numerous approach out there, this solution involves some fresh APIs.
Simplest way to load UIView from Xib files
The method has three role player. First, an Interface Builder Xib file that holds a configured view we want to load. The middle player is a smart but death simple helper object EPPZViewInstantiator with the sole purpose of load a Nib file, and have a reference to a view in it. The third is a tiny UIView category.
UIImage from SpriteKit scene
Sometimes you find yourself in a situation, when you need to snapshot a UIImage from SpriteKit, to export into the Photo Library, or a thumbnail to show up somewhere, or probably more often a shot just to blur it while you overlay some transparent UIKit content on the top of it. I was just in such situation lately, and after some trial and error I ended up with a UIImage.
iOS 6-7 icon comparison | cross compatible inset shape with rounded corners
During my latest icon designing process I wanted to involve a simple inset/inner stroke (also derive further shapes from it later on), so I got into a deeper iOS 6-7 icon comparison to create a cross compatible inset shape (with rounded corners) that fits both iOS icon shape well.
5 approach to implement SpriteKit drag
Implementing SpriteKit drag could be tricky. On one hand you can find a running animation (I’m not sure that it is synced with UIKit touch events), on the other hand you (may) have a physics simulation to fit in.
Simple Core Data sample managing an object queue
Core Data is overmistified, at least it was by me. But after all, it just maintains objects in memory, save them to disk, then load them back. The rest of the features can wait until you really need them. Oh, and almost forget, it has nothing to do with AppDelegate.
Custom UITableViewCell from Xib with ease
As it is common among these articles, the main point is always to keep the client code clean, resulting in some reusable, extendable class for everyday use. This article will just do the same. Ending up in a custom TechCrunch themed table with instantiating each UITableViewCell from Xib file.
5 approach to load UIView from Xib
After the past few years I found that the only manageable way for creating/maintaining view (or any UI element in more general) is to instantiate the UIView from Xib file. Creating/designing is far more intuitive in Interface Builder than write layout code, defining layout constants (dimensions, colors).
Push Git to FTP
With some lightweight web-releated project, I often found that pushing a particular Git revision to the production server – forming a Git to FTP bridge – could be a really convenient part of the workflow. For example, I’m using the same technique for editing/versioning the theme for this blog.
Reachability with blocks for everyday use
All in all, I decided to dig deeper into Apple’s sample code (and documentation) and understand all those seemingly weird things, then get rid of the most. In the end I found that asking for a host Reachability is actually three lines of code. No more than three innocent lines of code.