2条回答 默认 最新
- g989_1314125 2013-03-07 09:04关注
简单:
[yourView.layer setBorderWidth:5.0]; [yourView.layer setBorderColor:[[UIColor colorWithPatternImage:[UIImage imageNamed:@"DotedImage.png"]] CGColor]];///just add image name and create image with dashed or doted drawing and add here
这里只需要添加QuartzCore/QuartzCore.h框架,像下面一样导入.m文件:
#import <QuartzCore/QuartzCore.h>
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报