newCity.cityPicture = nil;
newCity.cityPicture = cityPicture;
Isn't the first assignment statement irrelevant since it is overwritten anyway on the next line? Or does assigning a pointer to nil have a side affect? (I say a pointer because each City object has a pointer of type UIImage named "cityPicture". ) I think Chen may have spotted this first, but I wanted to put it on the blog.
This comment has been removed by a blog administrator.
ReplyDeleteDang, we've been spammed! Anyway, yeah, I think the assignment to nil is another typo, or maybe a leftover from an earlier version of the exercise.
ReplyDeleteWe're serious about increasing your sales. blackberry app developers
ReplyDeletemobile website development