写了一个类继承了layer,然后重写了init,但是在最后没有写bool变量=true,然后就会报标题中的错误 转载于:https://www.cnblogs.com/say-one-say/p/3845008.html