Skip to content

Instantly share code, notes, and snippets.

@stevenringo
Created October 24, 2011 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenringo/1308431 to your computer and use it in GitHub Desktop.
Save stevenringo/1308431 to your computer and use it in GitHub Desktop.
//
// 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