WARNING: Output of vertex shader 'v_gradient' not read by fragment shader

来源:互联网 发布:京东有没有类似淘宝客 编辑:程序博客网 时间:2024/06/12 01:15

这个警告仅发生在xcode8、ios10.0以上版本的DEBUG模式下。原因不明。进入到一个有MKMapView的界面后,在退出的时候就会弹这个警告。

解决:

- (void)dealloc

{

#if DEBUG

    // Xcode8/iOS10 MKMapView bug workaround

    staticNSMutableArray* unusedObjects;

    if (!unusedObjects)

        unusedObjects = [NSMutableArraynew];

    [unusedObjects addObject:self.viewMap];

#endif

}



0 0
原创粉丝点击