Screen dithering after adding shadows to IOS

Source: Internet
Author: User

-(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.