Skip to content
Browse files

[UI][Core] - fix comment for TTDeprecation and Fix for TTTableViewHea…

…der disappearing on reuse. Closes #408
  • Loading branch information...
1 parent 0229e7e commit aeaa06a97a20009b56a72380dcf23b40bd056efc @jwang jwang committed Feb 16, 2011
Showing with 7 additions and 2 deletions.
  1. +1 −1 src/Three20Core/Headers/NSStringAdditions.h
  2. +6 −1 src/Three20UI/Sources/TTTableViewDelegate.m
View
2 src/Three20Core/Headers/NSStringAdditions.h
@@ -30,7 +30,7 @@
/**
* Determines if the string is empty or contains only whitespace.
- * @deprecated Use TTIsStringWithAnyText: instead.
+ * @deprecated Use TTIsStringWithAnyText() instead.
*/
- (BOOL)isEmptyOrWhitespace __TTDEPRECATED_METHOD;
View
7 src/Three20UI/Sources/TTTableViewDelegate.m
@@ -92,7 +92,12 @@ - (UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)
NSString* title = [tableView.dataSource tableView:tableView titleForHeaderInSection:section];
if (title.length > 0) {
TTTableHeaderView* header = [_headers objectForKey:title];
- if (nil == header) {
+ // If retrieved from cache, prepare for reuse:
+ // We reset the the opacity to 1, UITableView could set this property to 0 after remove it.
+ if (header) {
+ header.alpha = 1;
+ }
+ else if (nil == header) {
if (nil == _headers) {
_headers = [[NSMutableDictionary alloc] init];
}

0 comments on commit aeaa06a

Please sign in to comment.
Something went wrong with that request. Please try again.