Override back button in navigation stack

ref: http://stackoverflow.com/questions/5085452/override-back-button-in-navigation-stack

UINavigationController pushViewController pauses/freezes midway through

ref: http://stackoverflow.com/questions/19917928/uinavigationcontroller-pushviewcontroller-pauses-freezes-midway-through With out more detail I can think of 2 possible problem with that. Is there Shadow added in code to the view that will be covered by the new ViewController. If it is the case, use ShadowPath or an translucent view instead (the property Shadow is expensive while animating, been there done that) […]

CvVideoCamera usage

When using CvVideoCamera in a UINavigation setting, you must start the camera when the camera’s uiviewcontroller gets pushed. Right before the uiviewcontroller gets popped, make sure you stop the camera:

Also, its a good idea to take care of the camera when you are existing and enter the app:

Navigating to a new UIViewController from a UIViewController

First we put a button there and correspond it to a method called nextPage.

Then in that method, you use pushViewController to animate a new controller coming in.

…where MTBookCoverViewController is just a standard, empty UIViewController.

iCarousel using non-ARC

As of version 1.8, iCarousel requires ARC. If you wish to use iCarousel in a non-ARC project, just add the -fobjc-arc compiler flag to the iCarousel.m class. To do this, go to the Build Phases tab in your target settings, open the Compile Sources group, double-click iCarousel.m in the list and type -fobjc-arc into the […]

Apply gradient to UIView

Using gradient from one color ro another

Using a sliver of gradient as background

UIViewControllers talk to each other through delegates

The controller manages the communication between the view and the model. It takes the data from the model and communicates it to the view for display. In the same vein, the controller also takes the changed data (due to user interaction or something else) and communicates it back to the model. Say SmoothiesViewController and EditRecipeViewController […]

Data Model (mvc)

You have your business logic in Recipes: Recipe.h:


We put our business logic into a data structure. Implement some methods that manipulate this business logic. This is called our data model. DataModel.h:

DataModel.m – this is where we manipulate our business logic into a data structure and implement wrapper methods such […]