2016-07-22 50 views
-1

底部是想结果页面怎么画故事板导致IMG文件

enter image description here

底部是我的故事板...

enter image description here

底部是我的结果页.. 。

enter image description here

我的故事板如何首先映像文件...?

  1. 分频器是不行的......我试试

    // saperator

    func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) 
        { 
        let additionalSeparatorThickness = CGFloat(20) 
        let additionalSeparator = UIView(frame: CGRectMake(0, 
        cell.frame.size.height + additionalSeparatorThickness, cell.frame.size.width, additionalSeparatorThickness)) 
        additionalSeparator.backgroundColor = UIColor.grayColor() 
        cell.addSubview(additionalSeparator) 
        } 
    
  2. 背景颜色不起作用 - > storay板设置的firstView和TableView中的背景颜色

+2

请正确格式化您的代码并注意正确的拼写和标点符号。对于母语为英语的人来说,阅读这个问题是一种痛苦。 –

回答

1

如果你想绘制像你发布的图片的细胞,你不应直接使用单元格的内容视图,您应该尝试在单元格内容视图中添加另一个自定义视图,并将内容视图的背景色设置为UIColor.clearColor(),然后将自定义视图的layer.cornerRadius设置为5

希望它能帮助你。