循环创建button到界面
-(void)addButton
{
1 需要创建多少个button
NSUInteger coun = 60;
2 循环快速的添加到界面上来
for (NSUInteger i = 0; i < coun; i++) {
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
CGFloat red = arc4random()%266/255.0;
CGFloat greed = arc4random()%266/255.0;
CGFloat blue = arc4random()%266/255.0;
button.backgroundColor = [UIColor colorWithRed:red green:greed blue:blue alpha:1];
[self.view addSubview:button];