1
私はそれが正常に動作しない、これを持っている:UIViewの丸みのあるコーナーはカラーパターンでは機能しませんか?
self.rightbarshadow.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]];
しかし、これはもはや作品:
self.rightbarshadow.layer.cornerRadius=30;
を代わりに、私はこれに背景色を変更する場合:
self.rightbarshadow.backgroundColor=[UIColor grayColor];
その後cornerRadiusは機能します。
背景色のイメージパターンがある場合は角を丸めることはできないと思いますか?