Hi,
Thanks for the code example.
I am having a problem that only occurs on the device (iPod Touch) and
not in the iPhone Simulator.
Here is the problem:
First I get this message-
GDB: Program received signal: "SIGABRT"
Here the stack trace:
#0 0x31dd594c in __kill
#1 0x31dd5940 in kill
#2 0x31dd5934 in raise
#3 0x31deccfe in abort
#4 0x374ef848 in __gnu_cxx::__verbose_terminate_handler
#5 0x300166c0 in _objc_terminate
#6 0x374ecf3c in __cxxabiv1::__terminate
#7 0x374ecfb4 in std::terminate
#8 0x374ed0dc in __cxa_throw
#9 0x300165e4 in objc_exception_throw
#10 0x30292f84 in -[NSObject doesNotRecognizeSelector:]
#11 0x3021806e in ___forwarding___
#12 0x3020ede8 in __forwarding_prep_1___
#13 0x00014dcc in -[CPTextLayer sizeToFit] at CPTextLayer.m:90
#14 0x00014c3c in -[CPTextLayer setText:] at CPTextLayer.m:70
#15 0x00014d56 in -[CPTextLayer initWithText:style:] at CPTextLayer.m:
39
#16 0x00014cda in -[CPTextLayer initWithText:] at CPTextLayer.m:53
#17 0x00013120 in -[CPAxisLabel initWithText:textStyle:] at
CPAxisLabel.m:60
#18 0x00005eb4 in -[BatteryGraphViewController
axisLabelText:tickLocation:unitLabel:labelArray:tickLocationArray:] at
BatteryGraphViewController.m:383
Some how I don't think this line of code from CPTextLayer is finding
the correct selector:
CGSize textSize = [self.text sizeWithStyle:textStyle];
Any ideas why this would fail on the device and not in the iPhone
Simulator?
Thanks,
Neel