Navigation Menu

Skip to content

Commit

Permalink
Add the table view as a subview for more flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Apr 16, 2012
1 parent 6b41bde commit a9b4869
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SSManagedTableViewController.h
Expand Up @@ -13,7 +13,7 @@

@interface SSManagedTableViewController : SSManagedViewController <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, retain) UITableView *tableView;
@property (nonatomic, strong, readonly) UITableView *tableView;
@property (nonatomic) BOOL clearsSelectionOnViewWillAppear;

- (id)initWithStyle:(UITableViewStyle)style;
Expand Down
7 changes: 5 additions & 2 deletions SSManagedTableViewController.m
Expand Up @@ -32,8 +32,11 @@ - (void)dealloc {
#pragma mark - UIViewController

- (void)loadView {
_tableView.frame = [[UIScreen mainScreen] applicationFrame];
self.view = _tableView;
[super loadView];

// Add the table view as a subview for increased flexibility
_tableView.frame = self.view.bounds;
[self.view addSubview:_tableView];
}


Expand Down

0 comments on commit a9b4869

Please sign in to comment.