Can I optimize this at all?
- by Moshe
I'm working on an iOS app and I'm using the following code for one of my tables to return the number of rows in a particular section:
return [[kSettings arrayForKey:@"views"] count];
Is there any other way to write that line of code so that it is more memory efficient?
EDIT:
kSettings = NSUserDefaults standardUserDefaults.
Is there any way to rewrite my line of code so that whatever memory it occupies is released sooner than it is released now?