Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't die trying to set the text to nil

  • Loading branch information...
commit 23363bcd27382ceaaeb518daa0e93c334297ca74 1 parent d98197d
Josh Abernathy joshaber authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/UIKit/TUIAttributedString.m
2  lib/UIKit/TUIAttributedString.m
View
@@ -243,6 +243,8 @@ - (NSString *)text {
}
- (void)setText:(NSString *)text {
+ text = text ? : @" ";
+
[self beginEditing];
[self replaceCharactersInRange:NSMakeRange(0, [self length]) withString:[text copy]];
[self endEditing];
Please sign in to comment.
Something went wrong with that request. Please try again.