I created a bezier path with:
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect
byRoundingCorners:(UIRectCornerTopLeft | UIRectCornerTopRight)
cornerRadii:CGSizeMake(10, 10)];
Is there a way to only stroke 3 of the 4 sides?
Yes, by creating your own bezier path. Here’s how we did this back in the days. You can apply/stroke this path using a CoreGraphics context. Should be easy enough. I’ve adapted the sample to draw a rounded rect without the bottom part.