不顯示分析:
1. dataArray是否為空,打印dataArray.count;
2. da'taArray是否初始化;
3.tableView是否初始化以及相應的frame是否設置合理
一般tableView不顯示,可以檢查這些
如果崩潰檢查:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
是否都寫,這兩個方法少一個都會導致崩潰,
還有一種可能就是在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
中發(fā)生數(shù)組越界!
當然還有多種可能,以后碰到再添加!勿噴,謝謝!