increasing object allocations in instruments
Hi friends My App is retrieving Data from SQLServer through web service,and storing into Local SQLite Database,and Displays Data in Table View while i am runnin开发者_高级运维g App through instruments its showing Fallowing Allocations... Can Any one Help why these objects are still in memory....?
Show us the code that you're using when inserting/updating records. Most probably you're allocating an object which you are then not releasing. For example:
NSString *someString = [[NSString alloc] initWithString:@"Yo"];
[myDictionary setValue:someString forKey:@"stringValue"];
You need to then call [someString release] to release the allocated object. Go over the code and see if you're 'alloc'ing something which you are then not releasing.
精彩评论