1) How to add sqlite database values into an array. 2) I was retrived my sqlite database values but how can I put these values into an array for to show the another viewcontroller tableview. 3) What can I write in viewcontroller.h and viewcontroller.m . 4) Below one I wrote but it getting error "No known class method for selector'getData'"
Code:
- (void)viewDidLoad
{
[super viewDidLoad];
depositArray=[[NSMutableArray alloc]init];
depositData=[[NSMutableArray alloc]init];
depositArray=[dbModelClass getData:str];
for( NSDictionary *dis in depositArray)
{
[depositData addObject:[dis objectForKey:@"depositTable"]];
}