| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // ImageViewController.m
- // RedAnt ERP Mobile
- //
- // Created by Ray on 11/6/15.
- // Copyright © 2015 United Software Applications, Inc. All rights reserved.
- //
- #import "ImageViewController.h"
- @interface ImageViewController ()
- @end
- @implementation ImageViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- UIBarButtonItem *closeButton = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"back"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]
- style:UIBarButtonItemStylePlain
- target:self
- action:@selector( onBackClick:)];
-
-
- self.navigationItem.leftBarButtonItem = closeButton;
-
-
- self.imageView.image = self.image;
- // Do any additional setup after loading the view.
- }
- - (void)onBackClick:(UIButton *)sender {
-
-
- [self.navigationController popViewControllerAnimated:FALSE];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- /*
- #pragma mark - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- // Get the new view controller using [segue destinationViewController].
- // Pass the selected object to the new view controller.
- }
- */
- @end
|