As I cannot find any questions/answers for this, I imagine it is not possible.
Is there anyway to set multiple borders on a UIView
.
I am curren
Try this,
I'm adding shadow with alpha 1 which will act as the inner border. And the normal border is given as outer border.
yourView.frame = CGRectInset(yourView.frame, -borderWidth, -borderWidth);
yourView.layer.borderColor = [UIColor blackColor].CGColor;
yourView.layer.borderWidth = borderWidth;
yourView.layer.shadowColor = [UIColor whiteColor].CGColor;
yourView.layer.shadowOffset = CGSizeMake(0, 1);
yourView.layer.shadowOpacity = 1;
yourView.layer.shadowRadius = 1.0;
yourView.clipsToBounds = YES;