Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

『...nib but the view outlet was not set』というエラーが出たとき

More than 5 years have passed since last update.

xibで作業をしていると何度かつまるポイント。。。

...nib but the view outlet was not set

というエラー。

つらい笑
このエラーが出たときには、xibとコントローラーの接続が出来てません。

対処法は以下です。

①File's OwnerのCustomClassを設定する

こんな感じ

②OutletsのViewとviewを接続する

こんな感じ

これで直る!

やったね!

maru_u
LGTMeow3使ってください! https://lgtmeow3.tokyo/
https://lgtmeow3.tokyo/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away