To run the sample you have to make the viewController as the rootViewController in the ‘LayerFunAppDelegate’
in the ‘didFinishLaunchingWithOptions’ method.
See code junk below. This should avoid the exception.
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]