Updated to match RKTwitter

This commit is contained in:
Blake Watters
2011-03-22 21:58:43 -04:00
parent deec82c8d3
commit aeef581ef8

View File

@@ -14,12 +14,12 @@
- (void)loadView {
[super loadView];
// Setup View and Table View
self.title = @"Two Toasters Tweets";
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
[self.navigationController.navigationBar setTintColor:[UIColor blackColor]];
// Setup View and Table View
self.title = @"RestKit Tweets";
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
self.navigationController.navigationBar.tintColor = [UIColor blackColor];
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(reloadButtonWasPressed:)] autorelease];
UIImageView* imageView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BG.png"]] autorelease];
imageView.frame = CGRectOffset(imageView.frame, 0, -64);
@@ -27,20 +27,15 @@
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 480-64) style:UITableViewStylePlain];
_tableView.dataSource = self;
_tableView.delegate = self;
[self.view addSubview:_tableView];
_tableView.delegate = self;
_tableView.backgroundColor = [UIColor clearColor];
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
UIBarButtonItem* reloadItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(reloadButtonWasPressed:)] autorelease];
[self.navigationItem setRightBarButtonItem:reloadItem];
[self.view addSubview:_tableView];
// Load statuses from core data
[self loadObjectsFromDataStore];
}
- (void)dealloc {
[_tableView release];
[_statuses release];