Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIBezierPath *path = [[UIBezierPath alloc] init];
- CGFloat indicatorWidth = 30.0;
- CGFloat indicatorHeight = 20.0;
- CGFloat indicatorPosition = 30.0;
- CGFloat x = rect.origin.x, y = rect.origin.y, width = rect.size.width, height = rect.size.height - indicatorHeight;
- [path moveToPoint:CGPointMake(0.0, 0.0)];
- [path addLineToPoint:CGPointMake(x, height)];
- [path addLineToPoint:CGPointMake(indicatorPosition, height)];
- [path addLineToPoint:CGPointMake(indicatorPosition + (indicatorWidth / 2), height + indicatorHeight)];
- [path addLineToPoint:CGPointMake(indicatorPosition + indicatorWidth, height)];
- [path addLineToPoint:CGPointMake(width, height)];
- [path addLineToPoint:CGPointMake(width, -height)];
- [[UIColor redColor] setStroke];
- [path setLineWidth:2.0];
- [path stroke];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement