To jest mój kod.UIView shadow does not working
listView.layer.masksToBounds = NO;
listView.layer.shadowOffset = CGSizeMake(-3, 3);
listView.layer.shadowColor=[[UIColor blackColor] CGColor];
listView.layer.shadowRadius = 4;
listView.layer.shadowOpacity = 1.0;
[listView.layer setShouldRasterize:YES];
Działa dobrze z efektem cienia.
Podczas wymiany
listView.layer.masksToBounds = YES;
zrobił uzyskać efekt cienia.
'listView' jest UIView –