mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-19 04:39:36 +00:00
set the right attributes for block properties. (#2113)
* set the right attributes for block properties. * oops. should remove strong. * Update ASImageNode.mm * revert to use copy for blocks. See apple documentation below https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html#//apple_ref/doc/uid/TP40011210-CH8-SW12 * make the block properties nonatomic.
This commit is contained in:
parent
1951954ba5
commit
a38f3db6b0
@ -54,9 +54,9 @@ struct ASImageNodeDrawParameters {
|
||||
@property CGRect imageDrawRect;
|
||||
@property BOOL isOpaque;
|
||||
@property (nonatomic, strong) UIColor *backgroundColor;
|
||||
@property ASDisplayNodeContextModifier preContextBlock;
|
||||
@property ASDisplayNodeContextModifier postContextBlock;
|
||||
@property asimagenode_modification_block_t imageModificationBlock;
|
||||
@property (nonatomic, copy) ASDisplayNodeContextModifier preContextBlock;
|
||||
@property (nonatomic, copy) ASDisplayNodeContextModifier postContextBlock;
|
||||
@property (nonatomic, copy) asimagenode_modification_block_t imageModificationBlock;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user