summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/ListController.h2
-rw-r--r--CyteKit/ListController.mm6
-rw-r--r--MobileCydia.mm5
3 files changed, 9 insertions, 4 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];
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 3e81b07..bba7233 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5982,7 +5982,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
_H<NSArray> thumbs_;
std::vector<NSInteger> offset_;
- _H<NSString> title_;
unsigned reloading_;
}
@@ -6069,10 +6068,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
}
- (id) initWithDatabase:(Database *)database title:(NSString *)title {
- if ((self = [super init]) != nil) {
+ if ((self = [super initWithTitle:title]) != nil) {
database_ = database;
- title_ = [title copy];
- [[self navigationItem] setTitle:title_];
} return self;
}