Skip to content

Commit

Permalink
[attributedlabel] Clean up the docs and fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jun 19, 2012
1 parent 8cfd71d commit acf7a23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/attributedlabel/src/NIAttributedLabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
- (void)setFont:(UIFont *)font range:(NSRange)range;
- (void)setUnderlineStyle:(CTUnderlineStyle)style modifier:(CTUnderlineStyleModifiers)modifier range:(NSRange)range;
- (void)setStrokeWidth:(CGFloat)width range:(NSRange)range;
- (void)setStrokeColor:(UIColor*)color range:(NSRange)range;
- (void)setStrokeColor:(UIColor *)color range:(NSRange)range;
- (void)setTextKern:(CGFloat)kern range:(NSRange)range;

@property (nonatomic, assign) IBOutlet id<NIAttributedLabelDelegate> delegate;
Expand Down Expand Up @@ -259,7 +259,7 @@
* @fn NIAttributedLabel::textKern
*/

/** @name Modifying Rich Text Styles for Specific Ranges */
/** @name Modifying Rich Text Styles in Ranges */

/**
* Sets the text color for a given range.
Expand All @@ -273,8 +273,7 @@
/**
* Sets the font for a given range.
*
* Note that this will not change the default font value and font will
* return the default font.
* Note that this will not change the default font value and font will return the default font.
*
* @fn NIAttributedLabel::setFont:range:
*/
Expand All @@ -285,12 +284,14 @@
* Note that this will not change the default underline style.
*
* Style Values:
*
* - kCTUnderlineStyleNone (default)
* - kCTUnderlineStyleSingle
* - kCTUnderlineStyleThick
* - kCTUnderlineStyleDouble
*
* Modifier Values:
*
* - kCTUnderlinePatternSolid (default)
* - kCTUnderlinePatternDot
* - kCTUnderlinePatternDash
Expand All @@ -303,17 +304,16 @@
/**
* Modifies the stroke width for a given range.
*
* A positive number will render only the stroke, whereas negivive a number are for stroke
* and fill.
* A width of 3.0 is a good starting point.
* A positive number will draw only the stroke.
* A negative number wlll draw the stroke and fill.
*
* @fn NIAttributedLabel::setStrokeWidth:range:
*/

/**
* Modifies the stroke color for a given range.
*
* Normally you would use this in conjunction with setStrokeWidth:range: passing in the same
* Normally you would use this in conjunction with setStrokeWidth:range:, passing in the same
* range for both.
*
* @fn NIAttributedLabel::setStrokeColor:range:
Expand Down
1 change: 1 addition & 0 deletions src/attributedlabel/src/NimbusAttributedLabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ myLabel.textKern = -6.0;
[myLabel setTextColor:[UIColor orangeColor] range:[myLabel.text rangeOfString:@"Nimbus"]];
[myLabel setFont:[UIFont boldSystemFontOfSize:22] range:[myLabel.text rangeOfString:@"iOS"]];
@endcode
* @}
*/

#import <Foundation/Foundation.h>
Expand Down

0 comments on commit acf7a23

Please sign in to comment.