-(void) awakefromnib {//initialization code _btnviews.layer.shadowpath =[uibezierpath bezierpathwithrect:_btnviews . Bounds]. Cgpath; _btnviews.layer.shadowcolor = [Uicolor Graycolor]. Cgcolor;//shadowcolor Shadow Color _btnviews.layer.shadowoffset = Cgsizemake (0,3),//shadowoffset Shadow offset, x right offset 4,y downward offset 4, default (0,-3 ), this is used with shadowradius _btnviews.layer.shadowopacity = 0.5;//Shadow transparency, default 0 _btnviews.layer.shadowradius = 2;//Shadow radius, default 3 _labauthortitle.layer.shadowpath =[uibezierpath Bezierpathwithrect:_labauthortitle.bounds]. Cgpath; _labauthortitle.layer.shadowcolor = [Uicolor Graycolor]. Cgcolor;//shadowcolor Shadow Color _labauthortitle.layer.shadowoffset = Cgsizemake (2,2),//shadowoffset Shadow offset, x right offset 4,y downward offset 4, Default (0,-3), this is used with shadowradius _labauthortitle.layer.shadowopacity = 0.5;//Shadow transparency, default 0 _labauthortitle.layer.shadowrad Ius = 2;//Shadow radius, default 3 _labauthorsubtitle.layer.shadowpath =[uibezierpath Bezierpathwithrect:_labauthorsubtitle.bounds] . Cgpath; _labauthorsubtitle.layer.shadowcOlor = [Uicolor Graycolor]. Cgcolor;//shadowcolor Shadow Color _labauthorsubtitle.layer.shadowoffset = Cgsizemake (2,2),//shadowoffset Shadow offset, X right offset 4, Y offset 4, default (0,-3), this is used with shadowradius _labauthorsubtitle.layer.shadowopacity = 0.5;//Shadow transparency, default 0 _labauthorsubtitle.la Yer.shadowradius = 2;//Shadow radius, default 3}
As above, after adding the shadow to the cell, the screen appears a tableview phenomenon, there is jitter when dragging.
Adding this sentence will be OK.
_labauthorsubtitle.layer. shadowpath =[uibezierpath bezierpathwithrect: _labauthorsubtitle.bounds]. Cgpath;
Screen dithering after adding shadows to IOS