My two Array Data.

My COde:
- (NSInteger)tableViewUITableView *)tableView numberOfRowsInSectionNSInteger)section {
if (section == 0) return [sentData count]-1;
if (section == 1) return [tableTestData count];
}
I get error so i had to use -1.Is there something wrong with my code.
How do i use the two arrays in the section?