Here is the code:
-(void)myOwnMethod{
NSString *myString;
myString = [[NSString alloc]init];
/*
Some logic about the String
*/
[myString release]; //Do I need to release the myString Object?
}
As you can see, the myString object is only used in the method, do I need to release it? or it will auto release when the method finish? Thank you.