I Got Array Like Following
@"6 objects"
[0]=(_NSDictionary*) 4 key/Value pairs
[0]=@"Home":@"(555)564-8583"
[1]=@"Mobile":@"(415)555-3695"
[2]=@"First Name":@"Kate"
[3]=@"Last Name":@"Bell"
[1]=(_NSDictionary*) 5 key/Value pairs
[2]=(_NSDictionary*) 5 key/Value pairs
[3]=(_NSDictionary*) 5 key/Value pairs
[4]=(_NSDictionary*) 5 key/Value pairs
Now I Want To Display My TableView Like following
Kate Bell
(555)564-8583
(415)555-3695
John Appleseed
Hank Zakroff
David Taylor
Daniel Higgins
In Above TableView Kate Bell Is Expanded And Other All Are Collapsed.It Mean When We Tap On Contact Name At That Time Numbers Will Display And Another Tap It Will Hide.
I am Putting Code By Which I get Mutable Array named (allcontact) Like Above.
- (void)getAllContacts else if (i==1) else if (i==2)
}
allContactDict = [[NSDictionary alloc] initWithObjectsAndKeys:
firstName,@"First Name",
lastName,@"Last Name",
homeno,@"Home",
mobileno,@"Mobile",
workno,@"Work",nil];
[allContact addObject:allContactDict];
homeno=@"";
mobileno=@"";
workno=@"";
NSLog(@"=============================================");
}
}