mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
+ Changing machines..
This commit is contained in:
57
Classes/BITImageAnnotationViewController.m
Normal file
57
Classes/BITImageAnnotationViewController.m
Normal file
@@ -0,0 +1,57 @@
|
||||
//
|
||||
// BITImageAnnotationViewController.m
|
||||
// HockeySDK
|
||||
//
|
||||
// Created by Moritz Haarmann on 14.02.14.
|
||||
//
|
||||
//
|
||||
|
||||
#import "BITImageAnnotationViewController.h"
|
||||
|
||||
@interface BITImageAnnotationViewController ()
|
||||
|
||||
@property (nonatomic, strong) UIImageView *imageView;
|
||||
@property (nonatomic, strong) UISegmentedControl *editingControls;
|
||||
@property (nonatomic, strong) NSMutableArray *layers;
|
||||
|
||||
@end
|
||||
|
||||
@implementation BITImageAnnotationViewController
|
||||
|
||||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
// Custom initialization
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
self.editingControls = [[UISegmentedControl alloc] initWithItems:@[@"Arrow", @"Rect", @"Blur"]];
|
||||
|
||||
self.navigationItem.titleView = self.editingControls;
|
||||
|
||||
[self.editingControls addTarget:self action:@selector(editingAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
self.imageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
|
||||
|
||||
self.imageView.image = self.image;
|
||||
self.imageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
// Do any additional setup after loading the view.
|
||||
}
|
||||
|
||||
-(void)editingAction:(id)sender {
|
||||
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user