Skip to content

Works perfect on UIView but crash with CALayer #1

@avgx

Description

@avgx

If I create objects to store with reuseQueue like this:
@interface TLMyView : CALayer < ACReusableObject >
@Property (nonatomic, copy) NSString *reuseIdentifier;
@EnD

it crashes at
- (id)newReuseObjectWithIdentifier:(NSString *)identifier {
...
if ([object respondsToSelector:@selector(setReuseIdentifier:)]) { //<- here crash
[object setReuseIdentifier:identifier];
}
...
}
And I can't get, why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions