french english

RSS 1.0 
 
 Login 
 Password 
 Sign in 
 
12-02-09 / 22:12 : Core Animation for automatic grid-cell layout (cjed)
At Mozketo blog, we can find a great trick about automatic grid cell layout in Objective-C, using Core Animation CAConstraint. This example defines the width constraint on the parent layer (superlayer) that contains the cells grid, and the constraint value is set as relative to the columns number. Then the grid's cells width automatically adapts to the columns number if it changes, and doesn't require any calculation to layout the cells in the grid bounds.
The example also adds random rotation and 3D transform to each cell (also through Core Animation).
The CAConstraint class isn't yet available in Cappuccino however.
Comments
Write a comment 
  
    
  image de securisation du formulaire


  
      (will be added after validation)