I created a clone minesweeper game on iphone. My embedding of cells in a grid is that I created a UIView and added buttons to UIView and then added UIView to UIScrollView, but every time I zoom in or out using the zoomToRect UIScrollView method, the scaling is not smooth and the distortion was distorted. How to implement smooth scaling in UIScrollView?
I would try to display your content in a bitmap when scrolling or zooming and replace the large grid of buttons with a bitmap until scrolling / scaling is complete. The UIScrollViewDelegate protocol should provide you with the necessary information to know when to change the bitmap. Part of the problem is that viewing content is so intensively computed for rendering (all of these buttons).
A more sophisticated approach would be to reimplement your game grid at a lower level using CoreAnimation and more fundamental handling of touch events, but this might be redundant if the bitmap hack works quite well.
, ? , iPhone . Safari , Safari -, . , , .
[http://stackoverflow.com/questions/1098234/optimized-image-loading-in-a-uiscrollview] , - , .
Source: https://habr.com/ru/post/1724349/More articles:jQuery - remove time based list items - javascriptDoes Apple iPhone App Review Process use a business day or calendar day? - iphoneinitialize string C with multiple quotes - cIs it wrong to use int in Cocoa and CocoaTouch? - objective-chigh-performance encryption in adobe air / flash - flashComplete JIT x86 / x64 assembler for C language - assemblySendKeys for Python 3.1 on Windows - pythonHow can I debug SendKeysCtypes on (win7 64bit, py2.7) further? - pythonEmbedded application and worn flash drives - embeddedUpdating text in the CW32 STATIC API using WS_EX_TRANSPARENT - c ++All Articles