Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Works perfect on UIView but crash with CALayer #1

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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