PHP中文网2017-04-17 16:21:08
Override the draw method of view:
[[UIBezierPath bezierPathWithRoundedRect:bounds
byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight
cornerRadii:6] addClip];
[[UIColor whiteColor] setFill];