1 UIColor *white1 = [UIColor whiteColor]; // 白色 2 UIColor *white2 = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0]; // 白色 3 UIColor *orange = [UIColor colorWithRed:1.0 green:0.5 blue:0.0 alpha:1.0]; // 橙色
4 UIColor *imageColor = [UIColor colorWithPatternImage:image]; // 根據圖片生成顏色
5 [[UIColor blackColor] setStroke]; // 設置邊框顏色
6 [[UIColor blueColor] setFill]; // 設置背景填充色
7 [[UIColor greenColor] set]; // 設置字符顏色