I have got this error during the debugging through device. In simulator it is working fine. How to solve that issue?
class is __NSCFConstantString pointer is 0x5922c
When I am pressing number "1", appears that error - integerPart - "Variable is not a CFString at this time"
I have tried to made the following in .m file:
then in .h file:
and change the code above:
But nothing was changed. Please help me to find an answer to solve this.
Code:
- (IBAction)buttonDigitPressed1: (UIButton *)button
{
NSString *integerPart = [SDKRegistry returnNSStringFromComponent:@"integerPart"];
NSLog(@"class is %@",[integerPart class]);
NSLog(@"pointer is %p", integerPart);
if (!integerPart) integerPart = @"";
NSString *one = @"1";
integerPart = [SDKRegistry updateRegistryComponent:@"integerPart" withString:
[integerPart stringByAppendingString: one]];
[self performConversion];
}
When I am pressing number "1", appears that error - integerPart - "Variable is not a CFString at this time"
I have tried to made the following in .m file:
Code:
NSString *integerPart; @property (nonatomic, retain) NSString *integerPart;
Code:
@synthesize integerPart;
Code:
integerPart = [[NSString alloc] initWithString:[SDKRegistry returnNSStringFromComponent:@"integerPart"]];
...
[integerPart release];
Last edited by a moderator: