[Dév iPhone] Personnaliser et animer des UIButtons avec Core Animation

By Romain Boulay on 17 février 2010 in French iOS Links
k 0

Un tutorial sur l’utilisation des « Layer Core Animation » sur des UIButtons afin de personnaliser au mieux ses interfaces.

Upon first glance, the UIButton class doesn’t seem to provide what you might expect in terms of customization. This often causes developers to resort to creating buttons in an image editor and then specifying that in the Background field in Interface Builder. This is a fine solution and will likely give you what you need, but with Core Animation layers there is a simpler way to achieve the look you want without having to create an image. This post will demonstrate how.

Voir l’article : Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers.