【问题标题】:CALayers does not appears on real deviceCALayers 不会出现在真实设备上
【发布时间】:2013-10-04 18:26:38
【问题描述】:

我对 CALayers 有一些问题。我有带有自定义 TableViewCells 的 UITableView,在这个单元格中我使用 CALayers 绘制了一些对象。当我在 IOS 7 模拟器上运行我的应用程序时,它运行良好。但是当我在真正的 iPhone 5 上运行应用程序时 - 没有图层出现。请帮忙解决这个问题。

【问题讨论】:

    标签: ios-simulator ios7 calayer


    【解决方案1】:

    我遇到了这个问题,并通过修改我的 CALayer 的属性来解决它。我正在使用 (weak, nonatomic) 并且更改为 (strong, nonatomic) 导致它们出现在设备上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-25
      • 1970-01-01
      • 2016-04-29
      • 1970-01-01
      • 1970-01-01
      • 2013-02-23
      • 1970-01-01
      • 2013-03-31
      相关资源
      最近更新 更多