Re: Strange Behavior
Re: Strange Behavior
- Subject: Re: Strange Behavior
- From: Alastair Houghton <email@hidden>
- Date: Sun, 7 Feb 2010 13:27:20 +0000
On 6 Feb 2010, at 00:44, MARC BLATT wrote:
> I have the following code in viewWillAppear: for my iPhone dev project (iPhone Development SDK Book, Chapter 4, p.63):
[snip]
> NSLog(@"%@ sold %@ because %@", self.movie.title, [formatter stringFromNumber:self.movie.boxOfficeGross], self.movie.summary);
> NSLog(@"%@ sold %@ because %@", self.titleLabel.text, self.boxOfficeGrossLabel.text, self.summaryLabel.text);
[snip]
> The Console displays the following NSLog statements:
>
> 2010-02-05 15:59:13.265 ... Inglorious Bastards sold $750,550,016.00 because Brad Pitt plays a great role with a terrible accent.
> 2010-02-05 15:59:13.266 ... (null) sold (null) because (null)
I'm guessing that titleLabel, boxOfficeGrossLabel and summaryLabel are UI elements of some sort, in which case the most likely explanation is that you haven't hooked them up (to your object) in Interface Builder, or that you haven't loaded the nib that contains them yet.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden