I have this code so far:
CGPoint midLeft = CGPointMake(0, additionalHeight);
CGPoint bottomCenter = CGPointMake(self.bounds.size.width / 2, self.bounds.size.height);
CGPoint midRight = CGPointMake(self.bounds.size.width, additionalHeight);
CGPoint topRight = CGPointMake(self.bounds.size.width, 0);
CGPoint topLeft = CGPointMake(0, 0);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextMoveToPoint(context, midLeft.x, midLeft.y);
CGContextAddLineToPoint(context, midRight.x, midRight.y);
CGContextAddLineToPoint(context, topRight.x, topRight.y);
CGContextAddLineToPoint(context, topLeft.x, topLeft.y);
CGContextClosePath(context);
Right now, it just draws me a rectangle, but I want it to draw me an arc, which reaches down to bottomCenter, like the shape at the top of this image:
I've tried CGContextAddArc and AddArcToPoint, and followed tutorials, but I can't figure out how to draw this kind of arc. Any help is appreciated.