diff options
Diffstat (limited to 'CyteKit')
-rw-r--r-- | CyteKit/ListController.h | 2 | ||||
-rw-r--r-- | CyteKit/ListController.mm | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/ListController.h b/CyteKit/ListController.h index b9b8022..a71139f 100644 --- a/CyteKit/ListController.h +++ b/CyteKit/ListController.h @@ -28,6 +28,8 @@ @interface CyteListController : CyteViewController +- (id) initWithTitle:(NSString *)title; + - (bool) shouldYield; - (void) loadView; - (void) _reloadData; diff --git a/CyteKit/ListController.mm b/CyteKit/ListController.mm index d3c162e..7d90045 100644 --- a/CyteKit/ListController.mm +++ b/CyteKit/ListController.mm @@ -130,6 +130,12 @@ static CGFloat CYStatusBarHeight() { [self deselectWithAnimation:animated]; } +- (id) initWithTitle:(NSString *)title { + if ((self = [super init]) != nil) { + [[self navigationItem] setTitle:title]; + } return self; +} + - (void) releaseSubviews { list_ = nil; [super releaseSubviews]; |