开发者

Problem setting UIImageView Image

开发者 https://www.devze.com 2023-02-03 00:03 出处:网络
I am trying to set my imageview: detailedEventViewController.thumbnail.image = [UIImage imageNamed:@\"amnesia.png\"];

I am trying to set my imageview:

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

but get the error:

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: '-[DetailedEventViewContro开发者_如何学JAVAller thumbnail]: unrecognized selector sent to instance 0x624d820'

My outlets are wired up correctly.


There must be a problem with your "thumbnail" property.

As such, you'll need to check:

  1. Whether it's been correctly defined and synthesized within your interface and implementation file(s).

  2. Whether it's an UIImageView.

  3. The spelling on all of the above.

0

精彩评论

暂无评论...
验证码 换一张
取 消