¡@

Home 

2014/10/15 ¤U¤È 10:03:42

iphone Programming Glossary: apais

When to release a NSString in iPhone

http://stackoverflow.com/questions/602178/when-to-release-a-nsstring-in-iphone

method NSMutableArray getPaises NSMutableArray paises paises NSMutableArray alloc init while get new row NSString aPais NSString stringWithUTF8String char sqlite3_column_text compiledStatement 0 paises addObject aPais return paises I am not.. get new row NSString aPais NSString stringWithUTF8String char sqlite3_column_text compiledStatement 0 paises addObject aPais return paises I am not releasing the aPais because if I do it the application crashes. I don't know when or if whether.. char sqlite3_column_text compiledStatement 0 paises addObject aPais return paises I am not releasing the aPais because if I do it the application crashes. I don't know when or if whether I should release it somewhere after using it..