Created
October 24, 2011 05:34
-
-
Save stevenringo/1308431 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ArtistsViewController.m | |
// dslcollection | |
// | |
// Created by Steven Ringo on 24/10/11. | |
// Copyright (c) 2011 Jospe. All rights reserved. | |
// | |
#import "ArtworksViewController.h" | |
@implementation ArtworksViewController | |
@synthesize artworksTableView; | |
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
{ | |
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
if (self) { | |
self.title = @"Artworks"; | |
self.tabBarItem.image = [UIImage imageNamed:@"41-picture-frame.png"]; | |
} | |
return self; | |
} | |
- (void)didReceiveMemoryWarning | |
{ | |
// Releases the view if it doesn't have a superview. | |
[super didReceiveMemoryWarning]; | |
// Release any cached data, images, etc that aren't in use. | |
} | |
#pragma mark - View lifecycle | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// self.viewControllers = [NSArray arrayWithObjects:artworksTableView, nil]; | |
[self pushViewController:artworksTableView animated:YES]; | |
artworksTableView.navigationItem.title = @"dogs"; | |
// Do any additional setup after loading the view from its nib. | |
} | |
- (void)viewDidUnload | |
{ | |
[self setArtworksTableView:nil]; | |
[super viewDidUnload]; | |
// Release any retained subviews of the main view. | |
// e.g. self.myOutlet = nil; | |
} | |
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation | |
{ | |
// Return YES for supported orientations | |
return (interfaceOrientation == UIInterfaceOrientationPortrait); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment