LoginSignup
2
2

More than 5 years have passed since last update.

EurekaでRowの再描画

Last updated at Posted at 2017-12-25

Eurekaを使っていて、Rowを再描画したい時があると思います

下記のようにすれば、再描画することができます。

VIew.swift
    override func viewDidLoad() {
        super.viewDidLoad()
        // Sectionの設定
                form +++ Section("UserInfo")
            // Rowを設定
            <<< TextRow("Name"){ row in
                row.title = "名前"
                row.placeholder = "Enter text here"
            }    
        form.rowBy(tag: "Name")?.baseValue = data["name"] as! String?
        // 再描画したいRowを選択して.reload()を実行
        form.rowBy(tag: "Name")?.reload()

      }
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2