#324: update GA to latest version to fix problem with SDK 7
This commit is contained in:
parent
c096d45c78
commit
5cfe719840
154 changed files with 3770 additions and 6852 deletions
|
@ -0,0 +1,46 @@
|
|||
//
|
||||
// ImageViewController.m
|
||||
// CuteAnimals
|
||||
//
|
||||
// Copyright 2012 Google, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ImageViewController.h"
|
||||
|
||||
#import "AppDelegate.h"
|
||||
|
||||
@interface ImageViewController ()
|
||||
|
||||
@property(nonatomic, strong) UIImage *image;
|
||||
|
||||
@end
|
||||
|
||||
@implementation ImageViewController
|
||||
|
||||
- (id)initWithNibName:(NSString *)nibNameOrNil
|
||||
bundle:(NSBundle *)nibBundleOrNil
|
||||
title:(NSString *)title
|
||||
image:(UIImage *)image {
|
||||
self = [super initWithNibName:nibNameOrNil
|
||||
bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
_image = image;
|
||||
self.title = self.screenName = title;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
UIImageView *imageView = [[UIImageView alloc] initWithImage:self.image];
|
||||
imageView.userInteractionEnabled = YES;
|
||||
imageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.view addSubview:imageView];
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:
|
||||
(UIInterfaceOrientation)interfaceOrientation {
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue