這有可能返回如在部分行中的值(而不是計數)的數量一個NSMutableArraynumberofRowsinSection是否可以返回NSMutableArray的VALUES?
- (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];
}
的應用只是崩潰,並且當我把恆定值(返回2例如),應用程序運行,但它沒有給出預期的結果。 我肯定錯過了一些東西。 謝謝你的幫助。
您如何檢測的問題:d!它解決了我的問題:)。非常感謝你,並接受。 – androniennn 2013-05-07 20:22:06
不客氣,考慮到NSArray只能容納NSNumbers! :) – Matt 2013-05-07 20:30:33