【发布时间】:2015-06-30 00:56:23
【问题描述】:
我正在使用xcode6.3
我在SimpleViewTable.m 文件中创建了一个数组
tableData = [NSArray arrayWithObjects:@"Egg Benedict", @"Mushroom Risotto", @"Full Breakfast", @"Hamburger", @"Ham and Egg Sandwich", @"Creme Brelee", @"White Chocolate Donut", @"Starbucks Coffee", @"Vegetable Curry", @"Instant Noodle with Egg", @"Noodle with BBQ Pork", @"Japanese Noodle with Pork", @"Green Tea", @"Thai Shrimp Cake", @"Angry Birds Cake", @"Ham and Cheese Panini", nil];
当我运行程序时。
在模拟器屏幕中我得到了结果,但它从@"Vegetable Curry"开始。
它没有显示索引 0 的结果。
当我单击表格项目并向下拖动时,我会看到以前的项目。 并且它再次向上移动。
请给我一个建议,以便我可以解决这个问题。
【问题讨论】:
-
你能执行这个初始化数组的动作并再次抛出反馈发生了什么吗? tableData= [[NSArray alloc]initWithObjects:@"A",@"B", nil]
-
您是使用包含 UITableView 的 UIViewController 还是使用完整的 UITableViewController?另外,您是否为表格使用了一些 HeaderViews?
-
@Rajan,我尝试使用 [[NSArray alloc]initWithObjects....但我遇到了同样的问题。
-
@itinance,我使用 UITableView 显示产品列表,存在于数组中。
标签: ios iphone uitableview xcode6.3