When I drag picture in my customed view, the picture starts jittering. The larger the zoom scale, the more the jitter.
I override draw function in UIView, then I use the CGContext to draw an CGImage in a CGRect. Very simple.
ctx.draw(img, in: drawRect)
The drawRect updates everytime I drag or pinch the screen, so the image can move with finger.
Everything works well on iOS 13 and even iOS 14 beta.
Can anyone tell me what the problem is?
Post
Replies
Boosts
Views
Activity
When zoom in, CATiledLayer works very well. It shows previous layer while rendering next layer. I cannot aware the rendering.
When zoom out, it sucks. It leaves blank when rendering smaller scale layer.
How can I solve this???
For example, when downscale, put the draw rect into main thread?
dyld[766]: Library not loaded: @rpath/lib/libswiftCoreGraphics.dylib
Referenced from: /private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Coloring Book
Reason: tried: '/usr/lib/system/introspection/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file), '/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file), '/private/var/containers/Bundle/Application/94ECCB38-EB17-4A37-8D38-5D50018D135C/Coloring Book.app/Frameworks/lib/libswiftCoreGraphics.dylib' (no such file)
It is weird putting the tabbar on top.
Apple should give us a way to put the Tabbar back to bottom, just like the old version.
Otherwise, I will write a custom view to bring the old feature back.
Every year, WWDC brings additional workload to developers.
I HATE WWDC