Code from previous app

This commit is contained in:
Patrick Santana 2013-03-04 14:39:10 +01:00
commit 7ed1201c89
276 changed files with 14582 additions and 6318 deletions

View file

@ -0,0 +1,44 @@
//
// ImageViewController.m
// CuteAnimals
//
// Copyright 2012 Google, Inc. All rights reserved.
//
#import "ImageViewController.h"
#import "AppDelegate.h"
@implementation ImageViewController
@synthesize imageView = imageView_;
@synthesize navController = navController_;
- (id)initWithNibName:(NSString *)nibNameOrNil
bundle:(NSBundle *)nibBundleOrNil
title:(NSString *)title
image:(UIImage *)image {
self = [super initWithNibName:nibNameOrNil
bundle:nibBundleOrNil];
if (self) {
self.title = self.trackedViewName = title;
self.imageView = [[[UIImageView alloc] initWithImage:image] autorelease];
self.imageView.userInteractionEnabled = YES;
self.imageView.contentMode = UIViewContentModeScaleAspectFit;
}
return self;
}
- (void)dealloc {
[imageView_ release];
[navController_ release];
[super dealloc];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:
(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
@end