在iphone 6中,我正在制作一个自定义的UITableViewCell.在init函数中,当我这样做时,
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
Run Code Online (Sandbox Code Playgroud)
然后,我检查它出来的框架320 X 44而不是375 X 44.但是,layoutSubviews它很好.我在iphone 6模拟器上检查这个.有没有办法只能在init中获得正确的大小?
我写了一个模糊图像的功能,但是100个用户中有1个遇到了这种崩溃.我无法复制它,无法调试它.
这是崩溃日志:
Thread : Crashed: com.apple.root.background-qos
0 libGPUSupportMercury.dylib 0x296fb8fe gpus_ReturnNotPermittedKillClient
1 libGPUSupportMercury.dylib 0x296fc3cb gpusSubmitDataBuffers
2 libGPUSupportMercury.dylib 0x296fc249 gldCreateContext
3 GLEngine 0x252ff93b gliCreateContextWithShared
4 OpenGLES 0x253dbab3 -[EAGLContext initWithAPI:properties:] + 406
5 CoreImage 0x2303ba8b ___ZN2CI11can_use_gpuEv_block_invoke + 142
6 libdispatch.dylib 0x307107a7 _dispatch_client_callout + 22
7 libdispatch.dylib 0x307113eb dispatch_once_f + 62
8 CoreImage 0x2303b9fb CI::can_use_gpu() + 98
9 CoreImage 0x22fb9b79 +[CIContext contextWithOptions:] + 188
10 Test 0x0016121b
-[NewRestaurantViewController blur:]
12 libdispatch.dylib 0x307107bb _dispatch_call_block_and_release + 10
13 libdispatch.dylib 0x30719dab _dispatch_root_queue_drain + 866
14 libdispatch.dylib 0x3071acd7 …Run Code Online (Sandbox Code Playgroud)