What is the easiest way to draw images and text in Objective-C?

I plan to implement a component similar to the iphone photo album. I assume that using uviews will cause the component to have poor performance, I mean scrolling slowly and all the material ... so how should I take it? Is CALayer better than UIViews in terms of performance? Is there any other (easier) way to draw images or text without using subclasses of UIView?

Any link or idea will be great,

Thanks you!

+3
source share
2 answers

UIView vs drawing. , , , , . , , , , , , .

, , , , , . , , , , , , .

+2

, , .

- UIView, CoreGraphics.framework CoreText.framework.

CoreGraphics. . cg- - UIKit/AppKit, , , , , UIKit/AppKit. UIView/NSView , .

( , OpenGL- )

", uiviews ". , , Apple - , . , , , - CG- UIView/NSView, UIView. CoreGraphics OP, , .

0

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


All Articles