Group Group Group Group Group Group Group Group Group

raywenderlich.com Forums

CALayers Tutorial for iOS: Introduction to CALayers

A CALayers tutorial that shows you how you can add drop shadows, rounded corners, and other neat effects to views in your iOS app.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3096-calayers-tutorial-for-ios-introduction-to-calayers

The example code does not run. It crashes with uncaught exception of type NSException.

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.

      [self.window addSubview:viewController.view];
--> [self.window setRootViewController:viewController];
     [self.window makeKeyAndVisible];

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! :]