我有一個陰影圖像,我想圍繞分組的UITableView部分的外邊緣繪製。這是圖像:我可以使用UIBezierPath在UITableView部分周圍繪製陰影圖像嗎?
我可以代表我想提請周圍的矩形的UIBezierPath,但我無法弄清楚如何沿着矩形的路線重複圖像。到目前爲止,它只是用圖像填充矩形:
UIImage *patternImg = [UIImage imageNamed:@"cellShadow"];
UIColor *fill = [UIColor colorWithPatternImage:patternImg];
[fill setFill];
CGRect aSectRect = [self rectForSection:0];
UIBezierPath *aSectPath = [self createRoundedPath:aSectRect];
[aSectPath fill];
這可能嗎?我需要做什麼?