mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
cleanup/normalize method naming and braces
This commit is contained in:
@@ -40,8 +40,7 @@
|
|||||||
|
|
||||||
@implementation BITArrowImageAnnotation
|
@implementation BITArrowImageAnnotation
|
||||||
|
|
||||||
- (id)initWithFrame:(CGRect)frame
|
- (id)initWithFrame:(CGRect)frame {
|
||||||
{
|
|
||||||
self = [super initWithFrame:frame];
|
self = [super initWithFrame:frame];
|
||||||
if (self) {
|
if (self) {
|
||||||
self.shapeLayer = [CAShapeLayer layer];
|
self.shapeLayer = [CAShapeLayer layer];
|
||||||
|
|||||||
@@ -39,8 +39,7 @@
|
|||||||
|
|
||||||
@implementation BITBlurImageAnnotation
|
@implementation BITBlurImageAnnotation
|
||||||
|
|
||||||
- (id)initWithFrame:(CGRect)frame
|
- (id)initWithFrame:(CGRect)frame {
|
||||||
{
|
|
||||||
self = [super initWithFrame:frame];
|
self = [super initWithFrame:frame];
|
||||||
if (self) {
|
if (self) {
|
||||||
self.clipsToBounds = YES;
|
self.clipsToBounds = YES;
|
||||||
|
|||||||
@@ -65,8 +65,7 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
|
|
||||||
#pragma mark - UIViewController
|
#pragma mark - UIViewController
|
||||||
|
|
||||||
- (void)viewDidLoad
|
- (void)viewDidLoad {
|
||||||
{
|
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
|
||||||
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
|
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
|
||||||
@@ -246,8 +245,6 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
|
|
||||||
self.panStart = [gestureRecognizer locationInView:self.imageView];
|
self.panStart = [gestureRecognizer locationInView:self.imageView];
|
||||||
|
|
||||||
// [self.editingControls setSelectedSegmentIndex:UISegmentedControlNoSegment];
|
|
||||||
|
|
||||||
} else if (gestureRecognizer.state == UIGestureRecognizerStateChanged){
|
} else if (gestureRecognizer.state == UIGestureRecognizerStateChanged){
|
||||||
CGPoint bla = [gestureRecognizer locationInView:self.imageView];
|
CGPoint bla = [gestureRecognizer locationInView:self.imageView];
|
||||||
self.currentAnnotation.frame = CGRectMake(self.panStart.x, self.panStart.y, bla.x - self.panStart.x, bla.y - self.panStart.y);
|
self.currentAnnotation.frame = CGRectMake(self.panStart.x, self.panStart.y, bla.x - self.panStart.x, bla.y - self.panStart.y);
|
||||||
|
|||||||
@@ -38,8 +38,7 @@
|
|||||||
|
|
||||||
@implementation BITRectangleImageAnnotation
|
@implementation BITRectangleImageAnnotation
|
||||||
|
|
||||||
- (id)initWithFrame:(CGRect)frame
|
- (id)initWithFrame:(CGRect)frame {
|
||||||
{
|
|
||||||
self = [super initWithFrame:frame];
|
self = [super initWithFrame:frame];
|
||||||
if (self) {
|
if (self) {
|
||||||
self.shapeLayer = [CAShapeLayer layer];
|
self.shapeLayer = [CAShapeLayer layer];
|
||||||
|
|||||||
Reference in New Issue
Block a user