Object-C在storyboard中绘制边框:
1、新建Cocoa Class文件Draw类,在Draw.m中重载方法-(void)drawRect:(CGRect)rect:
-(void)drawRect:(CGRect)rect {
UIBzierPath *path=[[UIBezierPath alloc] init];
[path moveToPoint:CGPointMake(180,200)];
[path addLineToPoint:CFPointMake(240,350)];
[path addLineToPoint:CGPoingMake(120,350)];
[path closePath];
[[UIColor redColor] setFill];
[[UIColor blueColor] setFill];
[path fill];
[path stroke];
}
2、在故事板storyboard总关联Draw类即可。