app圓角按鈕代碼 iapp按鈕怎樣設(shè)置為圓角?
iapp按鈕怎樣設(shè)置為圓角?//Enter fillet radius,Enter background fill color,Enter assignment variablengde(15,“#?
iapp按鈕怎樣設(shè)置為圓角?
//Enter fillet radius,Enter background fill color,Enter assignment variable
ngde(15,“#??”,BG)
//set control background
us(control ID,“background”,BG)
iapp按鈕怎樣設(shè)置為圓角?
ngde(fillet angle,“background color”,a)tngde(35,“FeFe”,a)如下所示。有關(guān)詳細(xì)信息,您可以在IAPP幫助中搜索ngde
當(dāng)然,您可以使用fillet按鈕,設(shè)置按鈕的圖層屬性。例如:uibutton*button=[[uibuttonalloc]initWithFrame:CGRectMake(100,100,100,100)] button.layer.cornerRadius=10//設(shè)置按鈕的圓角半徑//。是表示超出根層的部分被修剪。類似button.clipsToBoundsbutton.layer按鈕.masksToBounds=是