mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Updated to match RKTwitter
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user