UIDatePicker vector wireframe/mockup asset
I tend to maintain wireframes in Illustrator, having all the UI assets in vectors. The only thing I could not found so far is a neat vector asset. Status bar, and other native UI elements can be found out there, but date picker for vector wireframes is a need, so I made this implementation. Creating […]
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.
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.
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).
UIAlertView using blocks makes life easier
On a contracted job I had to use a bit more than I expected, so I was driven enough to create a brief wrapper that implements UIAlertView using blocks to simplify this undeservedly overcomplicated class. I wanted to get rid of introducing delegate messages, protocols, allocations, tagging, and all the stuff that was heavy to lift […]