有没有人知道如何创建一个带有弯曲框架的UITableView,如iOS上的MacOS下载(在Dock面板中)?

我试图使用UIBezierPath类,但不幸的是我没有成功.例如,我这样做:
_tableView = [[TVCurveTableView alloc] initWithFrame:CGRectMake(10, self.view.frame.size.height - 130, 70, 160)];
UIBezierPath *bezierPath = [[UIBezierPath alloc]init];
[bezierPath moveToPoint:CGPointMake(10, self.view.frame.size.height - 10)];
[bezierPath addLineToPoint:CGPointMake(40, (self.view.frame.size.height-10) - 160)];
[bezierPath addLineToPoint:CGPointMake(110, (self.view.frame.size.height-10) - 160)];
[bezierPath addLineToPoint:CGPointMake(80, (self.view.frame.size.height-10))];
[bezierPath addLineToPoint:CGPointMake(10, (self.view.frame.size.height-10))];
[bezierPath closePath];
bezierPath.lineWidth = 2;
CAShapeLayer *shapeView = [[CAShapeLayer alloc] init];
[shapeView setPath:bezierPath.CGPath];
shapeView.strokeColor = [UIColor redColor].CGColor;
[_tableView.layer addSublayer:shapeView];
Run Code Online (Sandbox Code Playgroud)
也许你有一些想法?