Understanding IEnumerator in Unity 3D
was among the less understandable classes (at least for me) in Unity3D. Actually does not seems being a class at all. It is used in conjunction with Coroutines, but the original intention behind this class is not that. As soon as I tried to use it for enumerating actually (for what the class originally designed for), […]
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).
Why asynchronous reachability with IP address doesn’t work?
The story is short, I attempted to get asynchronous callback from a reachability with IP address, but callbacks were never called back. If you have not experienced this before, or just dying of curiosity, you should check the proof project I made to reproduce this bug. if (asynchronous) //The asynchronous way, NOT WORKS (!!!) with […]
Understanding premultiplied alpha
I was always curious about what is happening during an alpha compositing process, especially how does premultiplied alpha in particular work. Mainly to completly understand the good use of blend factors, and be able to make really economic OpenGL shaders/render pipelines. So I made a clarification of alpha blending, and have modelled the whole process […]
Understanding MVC intentions
Today I realized that it is far easier to understand the intention behind MVC just by looking to a web product. Sites are usually made of a Database for Model, a Frontend for View, and a Backend for Controller. While implementing a site (you can think of a simple triumph), you’ll never put any code […]