iOS 开发 - Xcode8下self.view.layer不能addSublayer,报错 迷路的猿 2021-03-05 111 阅读1分钟 16年一月份写的时钟小Demo,今天徒弟问我要,运行了下发现崩了: API不支持了,所以: [self.view.layer addSublayer:_timeImageView.layer]; 改成了 [self.view addSubview:_timeImageView]; 如果有像博主一样曾这么干的,就动手改改吧。