注:本記事の方法ではパスワードが安全に保管されないようです。より安全に保管する方法を記載しました。(「iPhoneアプリ用のログイン情報設定画面の作り方(その2)」)。 TwitterやFacebook等のサービスと連携するiPhoneアプリを作る場合、ユーザーにそれらのサービスへのログイン情報を設定してもらう必要が出てくる事が多い。そこでUITableViewを使ってユーザ名とパスワードを入力するログイン情報設定画面の作り方を以下に記載する。 実際に作るのは以下のような設定画面。"Grouped"スタイルのUITableViewを使用する。 上記の画面はUITableViewの各セルの中に、UILabelとUITextFieldを埋め込むという形になる。 例えばUITableViewを管理するコントローラクラスをUserInfoSettingControllerとすると以下のような形にな