Implementation of the translucent effect of iOS development QQ space

Source: Internet
Author: User

1. The first thing we can determine is the cell's translucency,

/*

White

The grayscale value of the color object, specified as a value from 0.0 to 1.0.

Alpha

The opacity value of the color object, specified as a value from 0.0 to 1.0.

*/

Cell.backgroundcolor = [Uicolor colorwithwhite:1 alpha:0.5]; Set cell's background color to white translucent

This allows the cell to achieve a translucent effect, the following is the study below how to put it up

It's my practice to draw the picture in.

Rewrite the drawrect to put the picture in it.

-(void) DrawRect: (cgrect) Rect {

[[UIImage imagenamed:@ "1.jpg"] drawinrect:rect blendmode:kcgblendmodeplusdarker alpha:0.8];

}

Background image is I find a picture in Baidu look at it

Implementation of the translucent effect of iOS development QQ space

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.