button的兩種初始化

button的初始化有兩種 一種是動態建立  UIButton *button1 = [UIButton alloc]initWithFrame:CGRectMake(0, 0, 80, 50)];  接下來設置button屬性 另外一種是靜態建立 UIButton *button2 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 設置bu
相關文章
相關標籤/搜索