I am following a youtube video about CSV data access. But I have seen in the framework that NSAutoreleasePool is specified as obsolete. Have we got another way to develop access to CSV data file?

有帮助吗?

解决方案

@autoreleasepool {
   // parse your CSV
}

其他提示

The "brackets" pool = [[NSAutoreleasePool alloc] init] and [pool drain]; have been replaced with @autoreleasepool { <stuff between the "brackets> }.

@autoreleasepool is not at all obsolete in iOS5++. In some cases you MUST set up your own autorelease pool, see the docs.
The most important cases are 1) if you have code that creates many temporary objects that could be released before the app returns to the main run loop (you should), and 2) if you setup a separate thread (you must).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top