阅读背景:

为什么Objective C中的以下代码无法模拟“发送到解除分配的实例的消息”

来源:互联网 
char bytes[] = { 1, 2, 3, 4};
NSString * f = [[NSString alloc] initWithBytes:bytes length:4 encoding:NSASCIIStringEncoding];

[f release];

NSLog(@"%@", [f description]); // Why no 'message sent to deallocated instance "?

[f release];
char bytes[] = { 1, 2, 3, 4};
NSString * f = [[



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: