能不能将NSMutableArray返回成数字形式。
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
NSLog(@"number of rows in section: %@",[arrayofNombre objectAtIndex:section]);//it prints the right value
return [arrayofNombre objectAtIndex:section];
}
代码一运行就崩溃。如果放进一个常数值,运行之后的结果也不对。求高手指点,谢谢。