(Created page with '{{occlass|library=UIKit.framework}} right|thumb UIFontChooser is a view that can choose a font family. It is very primitive, and it is better to…') |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[Image:UIFontChooser.png|right|thumb]] | [[Image:UIFontChooser.png|right|thumb]] | ||
Line 38: | Line 36: | ||
== References == | == References == | ||
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIFontChooser.h | * Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIFontChooser.h | ||
{{occlass|library=UIKit.framework|navbox=on}} |
Revision as of 17:36, 12 October 2009
Error creating thumbnail: File missing
UIFontChooser is a view that can choose a font family. It is very primitive, and it is better to implement a custom UIPickerView instead.
Methods of UIFontChooser
Signature | +(UIFontChooser*)sharedFontChooser; |
---|---|
Available in | 2.0 – 3.1 |
Create a font chooser view. It will be initialized to have a frame equal to the main screen size.
-selectedFamilyName
Signature | -(NSString*)selectedFamilyName; |
---|---|
Available in | 2.0 – 3.1 |
Returns the selected font family name, or nil if none are selected.
-selectedSize
Signature | -(CGFloat)selectedSize; |
---|---|
Available in | 2.0 – 3.1 |
Returns the selected font size, or 0 if the size field is left empty.
delegate
Signature | @property(assign,nonatomic) id delegate; |
---|---|
Available in | 2.0 – 3.1 |
Give the font chooser a delegate to respond to. It must conform to the informal protocol:
@protocol UIFontChooserDelegate
@optional
-(void)showKeyboardForFontChooser:(UIFontChooser*)fontChooser;
-(void)hideKeyboardForFontChooser:(UIFontChooser*)fontChooser;
-(void)fontChooserDidChangeFamilyName:(UIFontChooser*)fontChooser;
-(void)fontChooserDidChangeSize:(UIFontChooser*)fontChooser;
@end
Note: If you implement -showKeyboardForFontChooser:, you must implement -hideKeyboardForFontChooser: as well.
References