Cocoa Touch - How to cache a CGImageRef or UIImage (not using imageNamed:)?
-
22-09-2019 - |
문제
I have a lot of images in my app so I decided to do some loading in a background thread, and since UIKit isn't thread-safe, I filled arrays with CGImageRefs. However, they are not cached and I need to be able to access them fast so my question is:
How to cache CGImageRef, or cache the UIImage derived from it later on in the main thread?
해결책
클릭 핸들러에 다음을 추가했습니다.
$('input.high').not(this).attr('checked', null).closest('tr').css('background-color', '#fff');
.
제휴하지 않습니다 StackOverflow