iOS UIView增長陰影

//添加陰影
UIimageView *imageView = [[UIImageView alloc ] init];
imageView.layer.shadowColor = [UIColor blackColor].CGColor;
imageView.layer.shadowOffset = CGSizeMake(3,2);
imageView.layer.shadowOpacity = 0.6;
imageView.layer.shadowRadius = 1.0;
imageView.clipsToBounds = NO;

//文字描邊
只設置shadowColor,不設置shadowOffset就能夠實現描邊效果
相關文章
相關標籤/搜索