2015年9月

pattern image draw circle

Using Core Animation's replicator layer, I managed to create this result:
请输入图片描述

I think it's close to what your looking for. In this example all the images are square with a 3d X rotation applied to each of them:

#import <QuartzCore/QuartzCore.h>    

//set the number of images and the diameter (width) of the circle
int numberOfImages = 30;
float diameter = 450.0f;

//get the radius, circumference and image size
float radius = diameter/2;
float circumference = M_PI * diameter;
float imageSize = circumference/numberOfImages;

- 阅读剩余部分 -