Permalink
Browse files

Fix more issues with status views.

  • Loading branch information...
1 parent 6642092 commit c81e221a80baac2be2a0bdaff73aaf015e977dd0 @newsyc newsyc committed May 29, 2011
@@ -10,6 +10,7 @@
@interface EntryListController : LoadingController <UITableViewDelegate, UITableViewDataSource> {
UITableView *tableView;
+ UIView *statusView;
UILabel *emptyLabel;
}
@@ -86,6 +86,7 @@ - (void)removeStatusView:(UIView *)view {
if ([[statusView subviews] count] == 0) {
[tableView setTableFooterView:nil];
+ [tableView setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
}
}
@@ -94,7 +95,6 @@ - (void)finishedLoading {
if ([tableView numberOfSections] == 0 || [tableView numberOfRowsInSection:0] == 0) {
[self addStatusView:emptyLabel];
- [tableView setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
}
}
@@ -13,7 +13,6 @@
@class LoadingIndicatorView;
@interface LoadingController : UIViewController <UIActionSheetDelegate, HNObjectLoadingDelegate> {
LoadingIndicatorView *indicator;
- UILabel *errorLabel;
PlacardButton *retryButton;
BOOL loaded;
HNObject *source;
@@ -31,7 +30,7 @@
- (void)addStatusView:(UIView *)view resize:(BOOL)resize;
- (void)removeStatusView:(UIView *)view;
-- (void)showErrorWithTitle:(NSString *)title;
+- (void)showError;
- (void)removeError;
@end

0 comments on commit c81e221

Please sign in to comment.