背景ビューの各ラベルに影を付けようとしています。
[[UILabel appearanceWhenContainedIn:[MyBackgroundView class], nil] setShadowColor:[UIColor colorWithWhite:0.6 alpha:1]];
[[UILabel appearanceWhenContainedIn:[MyBackgroundView class], nil] setShadowOffset:CGSizeMake(0, -1)];
問題は、私の背景ビューに、セルのラベルがこのshadowColorを取得してはならないいくつかのサブビュー(たとえば、テーブルビュー)があることです。
私はそうすることによってこれを試しました:
[[UILabel appearanceWhenContainedIn:[MyBackgroundView class], nil] setShadowColor:[UIColor colorWithWhite:0.6 alpha:1]];
[[UILabel appearanceWhenContainedIn:[MyBackgroundView class], nil] setShadowOffset:CGSizeMake(0, -1)];
[[UILabel appearanceWhenContainedIn:[UITableViewCell class], nil] setShadowColor:[UIColor clearColor]];
ただし、テキストシャドウはテーブルビューのセルにまだ存在します。
誰かが私が間違っていることを教えてもらえますか?!?