Dotted line border around UIView:
Its a Very Easy..
[
yourView
.
layer
setBorderWidth
:
5.0
];
///just add image name and create image with dashed or doted drawing and add here
[yourView.layer setBorderColor:[[UIColor colorWithPatternImage:
[UIImage imageNamed:@"DotedImage.png"]] CGColor]];
Here,
1. You just required add
QuartzCore/QuartzCore.h
Framework in project and
2. import it like bellow in
.m
file #import <QuartzCore/QuartzCore.h>
Hope this help you...
No comments:
Post a Comment