addchild 报错不能添加nil

写了一个类继承了layer,然后重写了init,但是在最后没有写bool变量=true,然后就会报标题中的错误

posted @ 2014-07-15 16:06  helloWorld我来了  阅读(126)  评论(0编辑  收藏  举报