Brush up you code design skills
Once you decided to make extensible, reusable, more stable, maintainable codes in the future, simply read these books, and start thinking about you existing projects’ code design. Both were originally written for Java language, but patterns can be pretty easily applies for everyday Objective-C development just fine.
Refactoring, prefactoring, defactoring
I’m fond of Kent Beck books on refactoring issues (Refactoring: Improving the Design of Existing Code, Implementation Patterns). Reading these books makes me more critic when looking to my own code. Most of the time I can catch signs of need for factoring something into new structures. Refactoring A common tool of refactoring are the […]
Dead simple singleton implementation
Over the times I made plenty of exotic singleton implementations, but lately I started to use this lightweight structure. Simply a class holds a static pointer, and whenever you create an instance, it will be assigned to that pointer. You can access it via a single class method. In terms of code it needs a […]
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.
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.
CSS3 transform playground
Will maintain this CSS3 transform experiment in the future, this is just a preview for now. I’m plannig some snapshot, or keyframe option where one can see different transformations in relation with each other, manage a collection of s in the scene. The best would be to write a MaxScript actually that exports some collapsed […]
Canvas layer experiment with sensor filtering methods
This is actually a HTML5 rework of a former flash prototype for inspecting signal filtering methods. The original Flash implementation is at ©ompass360° (augmented reality) 0.9.3 – filtering methods article. Later on it turned out that this is more of a HTML5 Canvas layer managing experiment. Just hit the expand button below. This comes handy […]
Advanced yet simple way to save to NSUserDefaults
Storing user level application settings, UI states, generic counters in an iOS app is an everydayer. The usual – and told to be easiest – way is to store these values is save to . But it is not that fluent for everyday use as it should be. Normally you don’t want to declare each […]
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.