macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

UILabel

UILabelクラス

ラベルのクラスです。 継承 UIView : UIResponder : NSObject 準拠 NSCoding NSCoding (UIView) NSObject (NSObject) フレームワーク /System/Library/Frameworks/UIKit.framework 使用可能 iPhoneOS2.0 定義 UILabel.h 概要 編集不可なテキストで、フォント…

enabled

プロパティ ラベルのテキストは有効かどうか 解説 @property(nonatomic, getter=isEnabled) BOOL enabled NOにするとグレーアウトします。 デフォルトはYES フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

textRectForBounds:limitedToNumberOfLines:

テキストを描画する領域を計算します。 -(CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines 解説 返り値 ( CGRect ) 引数 ( CGRect )bounds ( NSInteger )numberOfLines フレームワーク UIKit クラス UILabel Inst…

drawTextInRect:

指定の領域を描画します。 -(void)drawTextInRect:(CGRect)rect 解説 rectで指定した領域を描画します。 返り値 ( void ) 引数 ( CGRect )rect 描画する領域 フレームワーク UIKit クラス UILabel Instance Methods 使用可能 iPhone2.0 参照 例文

userInteractionEnabled

イベントを受け付けるかどうか @property(nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled 解説 ラベルはデフォルトではイベントを受け付けないようになっているので、YESをセットしてイベントを受け付けるようにしてやらなければ…

textColor

プロパティ テキストの色 解説 @property(nonatomic, retain) UIColor *textColor フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

textAlignment

文字揃え 解説 @property(nonatomic) UITextAlignment textAlignment 返り値 引数 フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

text

プロパティ 表示される文字列 解説 @property(nonatomic, copy) NSString *text フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

shadowOffset

テキストの影の位置のオフセット 解説 @property(nonatomic) CGSize shadowOffset フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

shadowColor

テキストの影の色 解説 @property(nonatomic, retain) UIColor *shadowColor テキストの影の色、nilなら影はなし フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

numberOfLines

プロパティ 表示される最大の行数 解説 @property(nonatomic) NSInteger numberOfLines デフォルトの値は1 0をセットすると制限なし フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

minimumFontSize

最小のフォントサイズ 解説 @property(nonatomic) CGFloat minimumFontSize デフォルトの値は0.0です。 フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

lineBreakMode

プロパティ 改行の動作設定 解説 @property(nonatomic) UILineBreakMode lineBreakMode UILineBreakMode フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

highlightedTextColor

ハイライト時のテキストの色 解説 @property(nonatomic, retain) UIColor *highlightedTextColor フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

highlighted

ハイライトしているかどうか 解説 @property(nonatomic, getter=isHighlighted) BOOL highlighted フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

font

プロパティ 表示される文字のフォント 解説 @property(nonatomic, retain) UIFont *font フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

enabled

解説 @property(nonatomic, getter=isEnabled) BOOL enabled 返り値 ( BOOL ) 引数 フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

baselineAdjustment

プロパティ ベースラインでの揃え 解説 @property(nonatomic) UIBaselineAdjustment baselineAdjustment UIBaselineAdjustment フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文

adjustsFontSizeToFitWidth

プロパティ テキストがUILabelのサイズに合うように調整するかどうか 解説 @property(nonatomic) BOOL adjustsFontSizeToFitWidth デフォルトの値はNO フレームワーク UIKit クラス UILabel Property 使用可能 iPhone2.0 参照 例文