UIBezierPath in drawing, custom animation track are applied.
UIBezierPath primarily used to draw vector graphics, which is based on a package of Core Graphics CGPathRef drawing attributes and path data types, it is required graphics context (CGContextRef), it is generally used in drawRect in UIBezierPath.
This paper describes the relevant Detailed information on iOS Bezier curves (UIBezierPath) properties, methods, for your reference, if any mistakes, correct me welcome message.
First, the introduction of the header file:
Second, if each property or each method are required to specify nonnull and nullable, it is a very complicated thing. Apple To lighten our workload, specifically provides two macros:
Macro definitions: Nonnull locale (Audited Regions)
In the macro code between these two, all simple pointer objects are assumed to be nonnull, so we just need to specify the pointer of those nullable.
Third, according to bit mask (bitmask)
Note: not enumerate
Bitwise mask (NS_OPTIONS) syntax and enumeration (NS_ENUM) the same, but the compiler will its value by bit mask | together.
Fourth, the system library header file macro definitions:
NS_CLASS_AVAILABLE_IOS (3_2): represents the only available in iOS3.2 and later versions, if you call this method in older than version 3.2, it will lead to the collapse
NS_DESIGNATED_INITIALIZER: Specifies the constructor, tell the caller to use this method to initialize (construction) class object.
Description of the method returns a pointer to an object inside C
Marked CF_RETURNS_RETAINED or CF_RETURNS_NOT_RETAINED. The compiler at compile time will automatically add relevant for their calls memory management.
V. Detailed method attribute:
Detailed iOS UIBezierPath Bezier
Guess you like
Origin blog.csdn.net/qq_29680975/article/details/102677096
Ranking