One Quickie


Rotating a layer by 90 degrees (Core Animation->General)
To rotate a 'flat' layer, gotta convert degrees to radians, and then rotate around a vector along the z axis.
hooverLayer.transform = CATransform3DRotate(CATransform3DIdentity,
                                            90.0 * M_PI / 180.0,
                                            0.0f, 0.0f, 1.0f);



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com