#import
CALayer * layer = [deltaButton layer];
[layer setMasksToBounds:YES];
[layer setCornerRadius:1.0]; //note that when radius is 0, the border is a rectangle
[layer setBorderWidth:2.0];
[layer setBorderColor:[[UIColor grayColor] CGColor]];
iOS set radius to button by layer
標籤: iOS張貼者: kenywalker 於 晚上10:48
訂閱:
張貼留言 (Atom)
Diseño e iconos por N.Design Studio | A Blogger por Blog and Web

0 意見:
張貼留言