Skip to content

-setup called twice after -init #6

@Grubas7

Description

@Grubas7

-initWithFrame: method is Designated Initializer for UIView. UILabel, UITextView, UITextField are classes inheriting from UIView, so after code

[[SSDynamicLabel alloc] init];

first will be called method -init then -initWithFrame:, so method -setup is called twice.
To fix this, just remove -init override from all UIView inheriting classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions