//添加阴影
//self.blackRect.layer.shadowColor=[[UIColor blackColor]CGColor];
//self.blackRect.layer.shadowOffset=CGSizeMake(15, 5);// self.blackRect.layer.shadowOpacity=0.6;
//给view赋上图片成为可能
// self.blackRect.layer.contents=(id)[[UIImage imageNamed:@"image"]CGImage];
//边框 圆角
//self.blackRect.layer.borderWidth=10;
//self.blackRect.layer.cornerRadius=10;
//maskToBounds clipsToBounds以后就没有阴影了 把超过主图层的部分裁剪掉了
//self.blackRect.clipsToBounds=YES;
//self.blackRect.layer.masksToBounds=YES;
//2D移动与3D移动
//self.imageView.transform=CGAffineTransformMakeTranslation(0, -100);
//M_PI_2是旋转90度 而Z轴范围-1 到 1之间是代表向量
self.blackRect.layer.transform=CATransform3DMakeRotation(M_PI_2,1,1,1);