Skip to content
This repository

Update #80

merged 1 commit into from about 2 years ago

2 participants

Evan Mattt Thompson

Updating readme sample code to match the current API.

Just changing block return type from NSAttributedString->NSMutableAttributedString

Mattt Thompson
mattt commented

It's a shame, really, that the API ever changed to requiring the block to return an NSMutableAttributedString. I await the day that I'm able to revert this change ;)

Mattt Thompson mattt merged commit 3bfd1b7 into from
Mattt Thompson mattt closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 10, 2012
Evan evanlong Update b0a7b46
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1 
2 
Source Rendered
@@ -33,7 +33,7 @@ label.lineBreakMode = UILineBreakModeWordWrap;
33 33 label.numberOfLines = 0;
34 34
35 35 NSString *text = @"Lorem ipsum dolar sit amet";
36   -[label setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^ NSAttributedString *(NSMutableAttributedString *mutableAttributedString) {
  36 +[label setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^ NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) {
37 37 NSRange boldRange = [[mutableAttributedString string] rangeOfString:@"ipsum dolar" options:NSCaseInsensitiveSearch];
38 38 NSRange strikeRange = [[mutableAttributedString string] rangeOfString:@"sit amet" options:NSCaseInsensitiveSearch];
39 39

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.