最終更新:2024-04-01 (月) 23:03:57 (39d)
UIButton
Top / UIButton
https://developer.apple.com/documentation/uikit/uibutton
Tasks
Creating Buttons
- +buttonWithType?
Configuring the Button Title
- titleLabel? - プロパティ (UILabel)
- reversesTitleShadowWhenHighlighted? - プロパティ (BOOL)
- setTitle:forState?
- setAttributedTitle:forState?
- setTitleColor:forState?
- setTitleShadowColor:forState?
- titleColorForState?
- titleForState?
- attributedTitleForState?
- titleShadowColorForState?
Configuring Button Presentation
- adjustsImageWhenHighlighted? - プロパティ (BOOL)
- adjustsImageWhenDisabled? - プロパティ (BOOL)
- showsTouchWhenHighlighted? - プロパティ (BOOL)
- backgroundImageForState?
- imageForState?
- setBackgroundImage:forState?
- setImage:forState:?
- tintColor - プロパティ (UIColor)
Configuring Edge Insets
- contentEdgeInsets? - プロパティ (UIEdgeInsets?)
- titleEdgeInsets? - プロパティ (UIEdgeInsets?)
- imageEdgeInsets? - プロパティ (UIEdgeInsets?)
Getting the Current State
- buttonType? - プロパティ (UIButtonType)
- currentTitle? - プロパティ (NSString)
- currentAttributedTitle? - プロパティ (NSAttributedString)
- currentTitleColor? - プロパティ (UIColor)
- currentTitleShadowColor? - プロパティ (UIColor)
- currentImage? - プロパティ (UIImage)
- currentBackgroundImage? - プロパティ (UIImage)
- imageView? - プロパティ (UIImageView)
Getting Dimensions
Deprecated Properties
- font? - プロパティ (UIFont) - Deprecated in iOS 3.0?
- lineBreakMode? - プロパティ (UILineBreakMode?) - Deprecated in iOS 3.0?
- titleShadowOffset? - プロパティ (CGSize) - Deprecated in iOS 3.0?
イベント
- Did End On Exit
- Editing Changed?
- Editing Did Begin?
- Editing Did End
- Touch Cancel?
- Touch Down?
- Touch Down Repreat?
- Touch Drag Enter?
- Touch Drag Exit?
- Touch Drag Inside?
- Touch Drag Outside?
- Touch Up Inside (Default)
- Touch Up Outside?
- Value Changed?
メモ
- フォントをヒラギノにかえると、文字の位置がボタンの真ん中ではなくなるらしい。。