validateTextureDimensions:759: failed assertion `MTLTextureDescriptor has width (45000) greater than the maximum allowed size of 16384.'

馋奶兔 提交于 2019-12-11 14:47:44

问题


I am getting this error on iOS 11 while trying to load the MKMapView on a collection cell. Everything works fine until I face this issue, I also tried by disabling the Metal API validation in Edit Scheme's but no luck. Any idea whats going wrong?


回答1:


The problem is with UICollectionViewDelegateFlowLayout where I am passing the CGSize width as collectionView.bounds.width * 0.75. By setting it to fixed width the error is gone. Weird but true!



来源:https://stackoverflow.com/questions/48016319/validatetexturedimensions759-failed-assertion-mtltexturedescriptor-has-width

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!