隨機顏色:
[UIColor colorWithRed:((float)arc4random_uniform(256) / 255.0)green:((float)arc4random_uniform(256) / 255.0)blue:((float)arc4random_uniform(256) / 255.0)alpha:1.0];
隨機顏色:
[UIColor colorWithRed:((float)arc4random_uniform(256) / 255.0)green:((float)arc4random_uniform(256) / 255.0)blue:((float)arc4random_uniform(256) / 255.0)alpha:1.0];
#include 區分 #include <x.h>與#include "x.h"的作用 #include <x.h>:它用於對系統自帶的頭文件的引用,編譯器會在系統文件目錄下去查找該文件.