If you are building a complex view, you can break it down in parts to make more readable the code and split the functionality on different UIView classes. Then you can instantiate your subviews from your main UIViewController.
Category Archives Cocoa
Cocoa Samurai’s article published in 2009, by Colin Wheeler, talk about Blocks, Grand Central Dispatch, GCD Design Patterns and Cocoa API’s using GCD and Blocks. In 2009, the methods expose in this article are based on OS X 10.6, however, with the increased interaction of the Mac and iPhone with web services, data cloud, etc.., these...Read more
There is some cases where we need to make a freehand drawing in our apps, for example to make a signature. This will be the first part of three post that will allow you to draw in a freehand way. Lets go! 1) Set up your project. If you don't know how to start maybe it's not your...Read more
The delegate pattern is a common and useful pattern in cocoa's environment like properties and will be easy to implement if you have clear what you want to do. The first thing we need to know will be the concept of 'protocol', this is basically a declaration which methods are between two classes and...Read more