2011-01-08 18 views
0

我想設置我的ImageView:問題設置的UIImageView圖片

detailedEventViewController.thumbnail.image = [UIImage imageNamed:@"amnesia.png"]; 

,但得到的錯誤:

2011-01-08 09:53:24.153 HD Pocket Vacations[24697:207] -[DetailedEventViewController thumbnail]: unrecognized selector sent to instance 0x624d820 
2011-01-08 09:53:24.247 HD Pocket Vacations[24697:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[DetailedEventViewController thumbnail]: unrecognized selector sent to instance 0x624d820' 

我的插座接線是否正確了。

+0

所以肯定有一個「縮略圖」屬性是UIImageView已合成? – 2011-01-08 17:03:07

回答

1

您的「縮略圖」屬性必須存在問題。

因此,您需要檢查:

  1. 它是否已正確定義和你的接口和實現文件(S)內合成。

  2. 是否是UIImageView。

  3. 以上所有的拼寫。