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;
}];
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;
}];