【筆記】IOS_button使用

m_manageButton.layer.cornerRadius = 5;
m_manageButton.layer.masksToBounds = YES;
  [m_manageButtonsetTitle:@"添加和\n 管理" forState:UIControlStateNormal];
  [m_manageButtonsetTitleColor:SKYTEXTGRAYforState:UIControlStateNormal];
m_manageButton.titleLabel.font = [UIFontsystemFontOfSize: 14.0];
//設置爲可換行
m_manageButton.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
m_manageButton.backgroundColor = SKYGRAY;
  [m_manageButtonaddTarget:selfaction:@selector(clickedManageBtn) forControlEvents:UIControlEventTouchUpInside

];

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章