Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…der disappearing on reuse. Closes #408
  • Loading branch information...
commit aeaa06a97a20009b56a72380dcf23b40bd056efc 1 parent 0229e7e
@jwang jwang authored
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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.