摘要: 当我们的uitableview为透明或者判断cell是否为空时,会发现uitableveiwcell会出现重叠,下面为自己的解决办法,提供给各位参考-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell=nil; static NSString *reuse=@"cell"; if (cell==nil) { cell=[[[UITableViewCell alloc] initWi 阅读全文
posted @ 2013-06-13 18:26 ygm900 阅读(1000) 评论(0) 推荐(0)
摘要: 在使用TableView的时候,下面一段代码是必须的,也是最标准的:[cpp] view plaincopyprint?- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CMainCell = @"CMainCell"; // 0 UITableViewCell *cell = [tableView dequeueReusableCellWithId... 阅读全文
posted @ 2013-06-13 18:15 ygm900 阅读(20511) 评论(0) 推荐(0)
摘要: Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]今天做一个tableView遇到一个这么个问题。经过baidu google,终于找到正解。因为- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个函数的返回值是个null!!查stackoverflow 找到下面的解。CellIdentifier I bet your cellForR... 阅读全文
posted @ 2013-06-13 18:08 ygm900 阅读(44111) 评论(0) 推荐(2)