一个iOS上的标签云view,能生成随机的、不重叠的坐标,有一定的定制性:
/**
* Min font size. Defautls to 14.
*/
@property (nonatomic, assign) NSInteger minFontSize;
/**
* Max font size. Defaults to 60.
*/
@property (nonatomic, assign) NSInteger maxFontSize;
/**
* Random text colors. Defaults to: <br />
[<br />
[UIColor blackColor],<br />
[UIColor cyanColor],<br />
[UIColor purpleColor],<br />
[UIColor orangeColor],<br />
[UIColor redColor],<br />
[UIColor yellowColor],<br />
[UIColor lightGrayColor],<br />
[UIColor grayColor],<br />
[UIColor greenColor],<br />
]
*/
@property (nonatomic, copy) NSArray *randomColors;
GitHub地址
时间: 2024-11-27 03:50:21