今日はUIViewの話をしたいと思います。 まずは、今回の題材となるコードを見ていただきましょう。 UIView *aView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; aView.alpha = 0.5; [self.view addSubview:aView]; UIView *bView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; bView.backgroundColor = [UIColor redColor]; [aView addSubview:bView]; このコードでは赤いbViewはaViewのalphaに影響を受けてしまい半透明になってしま