2012年3月7日水曜日

Uncategorized Compilation failed. Unable to write to path:...


"Uncategorized Compilation failed."=「分類外コンパイルエラー」なので様々な原因がありえますが、次の場合に発生しました。

logの詳細が次の場合:
The problem is that this is a prototype cell. It is meaningless to have an outlet to something in it, because it isn't a real cell: it's a model for what might be dozens or hundreds of cells, and which one would the outlet point to in that case?

UITableViewControllerでPrototype Cellを作り、そのoutletに何らかのオブジェクトを接続しようとした。プロトタイプはインスタンスを作る原型でそれから多数のインスタンスが作成されますが、ひとつのインスタンス変数であるoutletに接続できるのはひとつのオブジェクトだけなので、どのインスタンスをoutletに接続すべきか特定できません。

プロトタイプにtarget/actionを設定することは可能です。target/actionはCellインスタンスにセットされるので、全てのCellインスタンスに同じtarget/actionがセットされます。

0 件のコメント: