我工作在基於分組表格的視圖基礎工作,因爲我想將NSarray的值轉換爲整數,以指定numberOfRowsInSection的部分值,但它會拋出以下代碼。如何將nsarray的值轉換爲整數值
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
int sec;
if (section == 0){ sec=6; }
else if(section == 1){ sec=6; }
else if(section == 2){
sec=[[rsvn_detail objectAtIndex:0] objectForKey:@"totalrecord"];
}
return sec;
}
任何人幫助recify它提前感謝您的建議
問候, Sathish所在
好男人謝謝它的工作 – 2010-07-15 11:06:59
你應該將此標記爲答案Satish ... – NinjaCat 2010-07-29 10:25:11