Skip to content

How about a CKDrawableView #12

Description

@jasperblues

Just now I wanted to add a border to a UIView where only the top, left, right are drawn (bottom is empty).

I made a custom class that overrides UIView.

Rather than make this small class, how about a CKDrawbleView where you can add it directly as a sub-view to your view like so:

[myView addSubView:[CKDrawableView alloc] initWithBlock:^(CGRect rect){

//do my drawing here;

}];

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