0
我是較新的到iPhone應用程序的開發,所以請人幫助me.my主要問題是UITableView顯示xml解析數據的行數是多少?
- >解析我在其中的NSArray是nsmutable陣列的對象的的NSArray插入XML的屬性值的XML之後。類似的東西...
[records addObject:[NSArray arrayWithObjects:
[TBXML textForElement:visitor],
[TBXML textForElement:uniqueVisitor],
[TBXML textForElement:order],
[TBXML textForElement:revenue],
[TBXML textForElement:conversionRate],
[TBXML textForElement:newProduct],
[TBXML textForElement:outOfStockProduct],
[TBXML textForElement:productInCart],
[TBXML textForElement:visitorInc],
[TBXML textForElement:uniqueVisitorInc],
[TBXML textForElement:orderInc],
[TBXML textForElement:revenueInc],
[TBXML textForElement:conversionRateInc],
[TBXML textForElement:newProductInc],
[TBXML textForElement:outOfStockProductInc],
[TBXML textForElement:productInCartInc],nil]];
現在我想在uitableview.but的每一個細胞都顯示每個屬性值一個輪空一個我不知道會是怎樣的行數在一節method.please任何身體幫我,我給我的示例代碼....
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection: (NSInteger)section{
NSLog(@"The number of row in the object array: %d ",[records count]);
return [records count];
}
實現代碼如下方法就在這裏......現在告訴我,這將是對每一個細胞都顯示所有的屬性值一個輪空一個返回類型。
在此先感謝。