Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nottooshabby

macrumors 6502
Original poster
Jul 12, 2008
416
90
So there is something my app doesn't like about 2.1. Here is my crash log. It's complaining about a font? Any ideas?


[Session started at 2008-09-09 22:30:29 -0700.]
2008-09-09 22:30:31.194 iLeaseMyCar[3528:20b] *** Assertion failure in -[UILabel setFont:], /SourceCache/UIKit/UIKit-738/UILabel.m:438
2008-09-09 22:30:31.195 iLeaseMyCar[3528:20b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: font != nil'
2008-09-09 22:30:31.197 iLeaseMyCar[3528:20b] Stack: (
2468294987,
2480804091,
2468294443,
2471410724,
817183141,
817926218,
837317240,
837317032,
837315376,
837314643,
2467789250,
2467796004,
2467798264,
829005112,
829005309,
816175835,
816221412
)
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
Looks like you're assigning the font to nil. Check in your code for your font object being nil.
 

nottooshabby

macrumors 6502
Original poster
Jul 12, 2008
416
90
Looks like you're assigning the font to nil. Check in your code for your font object being nil.

The only thing that changed was the sdk....I wonder if it's in the xib files...

UPDATE: I deleted a button on my view in IB and it stopped crashing. So I recreated the button and now it works fine... wierd. Phew, I'm up and running again with the new sdk.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.