最終更新:2017-07-26 (水) 04:59:26 (2794d)
UITextField
Top / UITextField
UITextField.text=@"hoge";
UIKit/デリゲート
Tasks
Accessing the Text Attributes
- UITextField text? - プロパティ (NSString)
- UITextField attributedText? - プロパティ (NSAttributedString)
- UITextField placeholder? - プロパティ (NSString)
- UITextField attributedPlaceholder? - プロパティ (NSAttributedString)
- UITextField font? - プロパティ (UIFont)
- UITextField textColor? - プロパティ (UIColor)
- UITextField textAlignment? - プロパティ (NSTextAlignment)
- UITextField typingAttributes? - プロパティ (NSDictionary)
Sizing the Text Field’s Text
- UITextField adjustsFontSizeToFitWidth? - プロパティ (BOOL)
- UITextField minimumFontSize? - プロパティ (CGFloat)
Managing the Editing Behavior
- UITextField editing? - プロパティ (BOOL)
- UITextField clearsOnBeginEditing? - プロパティ (BOOL)
- [UITextField?[clearsOnInsertion?]] - プロパティ (BOOL)
- UITextField allowsEditingTextAttributes? - プロパティ (BOOL)
Setting the View’s Background Appearance
- UITextField borderStyle? - プロパティ (UITextBorderStyle?)
- UITextField background? - プロパティ (UIImage)
- UITextField disabledBackground? - プロパティ (UIImage)
Managing Overlay Views
- UITextField clearButtonMode? - プロパティ (UITextFieldViewMode?)
- UITextField leftView? - プロパティ (UIView)
- UITextField leftViewMode? - プロパティ (UITextFieldViewMode?)
- UITextField rightView? - プロパティ (UIView)
- UITextField rightViewMode? - プロパティ (UITextFieldViewMode?)
Accessing the Delegate
- UITextField delegate? - プロパティ (UITextFieldDelegate)
Drawing and Positioning Overrides
- UITextField textRectForBounds?
- UITextField drawTextInRect?
- UITextField placeholderRectForBounds?
- UITextField drawPlaceholderInRect?
- UITextField borderRectForBounds?
- UITextField editingRectForBounds?
- UITextField clearButtonRectForBounds?
- UITextField leftViewRectForBounds?
- UITextField rightViewRectForBounds?
Replacing the System Input Views
Xcode/Attributes Inspector
Text Field
- Text
- Plain
- Attributed
- Color
- Font
- Alignment
- Placeholder
- Background - 画像
- Disabled - 画像
- Border Style
- Clear Button
- Never appears
- Appears while editing
- Appears unless editing
- Is always visible
- Min Font Size
- Adjust to Fit
- Capitalization - UITextAutocapitalizationType?
- None
- Words
- Sentences
- All Characters
- Correction - UITextAutocorrectionType?
- Default
- No
- Yes
- Keyboard - UIKeyboardType
- Default
- ASCIII Capable
- Numbers and Punctuation
- URL
- Number Pad
- Phone Pad
- Name Phone Pad
- E-mail Address
- Decimal Pad
- Apperance - UIKeyboardAppearance?
- Default
- Alert
- Return Key - UIReturnKeyType
- Default - 改行
- Go - 開く
- Google - 検索
- Join - 接続
- Next - 次へ
- Route - 経路
- Search - 検索
- Send - 送信
- Yahoo - 検索
- Done - 完了
- Emergency Call - 緊急電話
- Auto Enable Return Key
- Secure
Control
- Alignment
- Horizontal
View
- Mode
- Tag
- Interaction
- User Interaction Enabled
- Multiple Touch
- Alpha
- Background
- Drawing
- Opaque
- Hidden
- Clears Graphics Context
- Clip Subviews
- Autoresize Subviews
- Stretching
イベント
- Did End On Exit
- Editing Changed?
- Editing Did Begin?
- Editing Did End (Default)
- Touch Cancel?
- Touch Down?
- Touch Down Repreat?
- Touch Drag Enter?
- Touch Drag Exit?
- Touch Drag Inside?
- Touch Drag Outside?
- Touch Up Inside
- Touch Up Outside?
- Value Changed?