添加鏈接庫QuartzCore.framework
添加頭文件
#import <QuartzCore/QuartzCore.h>
UButtonIcon.layer.cornerRadius =22.5f; //數字根據大小進行微調
UButtonIcon.layer.masksToBounds =YES;
添加鏈接庫QuartzCore.framework
添加頭文件
#import <QuartzCore/QuartzCore.h>
UButtonIcon.layer.cornerRadius =22.5f; //數字根據大小進行微調
UButtonIcon.layer.masksToBounds =YES;