最終更新:2017-07-26 (水) 04:59:26 (2465d)  

UITextField
Top / UITextField

UITextField.text=@"hoge";

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextField_Class/Reference/UITextField.html

UIKit/デリゲート

Tasks

Accessing the Text Attributes

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

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

  • UITextField inputView? - プロパティ (UIView)
  • UITextField inputAccessoryView? - プロパティ (UIView)

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
    • Twitter
  • 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

イベント

関連