Skip to content

Instantly share code, notes, and snippets.

#import <UIKit/UIKit.h>
#import "TNLAlertController.h"
#import <ReactiveCocoa/ReactiveCocoa.h>
@interface TNLAlertController_iOS7 : TNLAlertController
- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message andStyle:(TNLAlertControllerStyle)alertStyle;
@property (nonatomic, strong) UIAlertView *alertView;
UIBezierPath *rightPiece = [UIBezierPath bezierPath];
[rightPiece moveToPoint:CGPointMake(midX, height)];
[rightPiece addLineToPoint:CGPointMake(width - 2.0, 10.5)];
[rightPiece addArcWithCenter:CGPointMake(width-radius, radius) radius:radius startAngle:DEGREES_TO_RADIANS(45.0) endAngle:DEGREES_TO_RADIANS(235.0) clockwise:NO];
[rightPiece addLineToPoint:CGPointMake(midX + 2.0, 4.0)];
[rightPiece addLineToPoint:CGPointMake(midX - 2.0, 9.0)];
[rightPiece addLineToPoint:CGPointMake(midX + 2.0, 11.0)];
[rightPiece closePath];
[rightPiece applyTransform:CGAffineTransformRotate(transform, DEGREES_TO_RADIANS(25))];