如下:
@implementation Exp
- (int) func:(NSString**) dpStr
{
//------
*dpStr = [self func_2];
//------
}
Now it is being called like this:
int main ()
{
NSString * str = [[NSString alloc] init];
int retCode = [Exp func:&str];
// <----- Now here I m able to access value returned by func ------->
[str release]; // <--- It is crashing here
}
谁能解释为什么它坠毁?