我有一个包含单元格的uitableview。我试图弄清楚如何调整单元格的z顺序。我正在努力做到这一点:
但是当我加载tableview时,我得到了:
我已经尝试过了[tableView sendSubViewToBack:cell]
。同样,当我滚动到底部然后返回到顶部时,结果类似于图1,但是当我向下滚动时,结果类似于图2。感谢您的帮助。
static NSString *CellIdentifier = @"Cell";
NSString *row = [NSString stringWithFormat:@"%li",(long)indexPath.row];
GetMoreTableViewCell *cell = [_chapters dequeueReusableCellWithIdentifier:CellIdentifier];
NSMutableDictionary *deckCategory = [[_data valueForKey:key] valueForKey:row];
if (cell == nil) {
cell = [[GetMoreTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
[tableView bringSubviewToFront:cell];
if([[[_data valueForKey:key] valueForKey:[NSString stringWithFormat:@"%i",indexPath.row]] valueForKey:@"isDefault"] == [NSNumber numberWithBool:YES]) {
cell.addButton.hidden = YES;
}
cell.ttitle.text = [[[_data valueForKey:key] valueForKey:row] valueForKey:@"Name"];
cell.backgroundColor = [UIColor clearColor];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
CALayer * l = [cell.cellImage layer];
[l setMasksToBounds:YES];
[l setCornerRadius:10.0];
CALayer * b …
Run Code Online (Sandbox Code Playgroud) 我正在使用最新的Xcode 5.1.1.
当我创建一个新项目并导入chartboost例如或revmob一切正常.但当我关闭Xcode并重新打开它时,这就是我得到的:
据我所知,库搜索路径存在问题.
我试图从库搜索路径中删除所有内容 - >不工作从管理器中删除派生数据 - >不工作
当我删除库并重新导入时,它会很有效,直到我再次重新启动Xcode.
我感谢您的帮助.
更好的截图: