What is equivalent to "UIImageView" for sprite animations on OSX?

I am wondering how to get nice sprite animations on OSX- for example, UIImageViewprovides iPhoneOS. NSImageViewcan't ... but how can i solve this?

+3
source share
2 answers

If you want to make an animation, Core Animation seems like a smart choice. (See the section on providing key personnel .)

+1
source

There is no built-in equivalent, but it is quite easy to create.

UIImage - CGImageRef, NSImage - , . UIImageView UIImages . CGImage CGImages NSView.

gif. NSImageView , . . NSImage, , NSImageView , , NSView .

+1

Source: https://habr.com/ru/post/1747416/


All Articles