Posts tagged UIImageView
UIImageView setImage problem
Jun 28th
While working for this semester’s CSCW lab project, I encountered a strange situation: no matter what I did, the UIImageView didn’t load the image. After some digging on the Internet about this, I found out that first thing to look for is whether you’re sending the setImage message to the UIImageView instance you expect.
Being newbie in XCode and Apple’s technologies in general, I forgot to use NSLog. So my advice is to check and check often with NSLog for a nil pointer in the same place you’re trying to set the image. Obj-C loves to make freshman crazy by sending messages to nil pointers without any warning or other problem. So check if the pointer is nil, double check the IBOutlet connection to the UIImageView in IB.