IOS Part API Understanding

Source: Internet
Author: User

- (void) viewdidload {[Super viewdidload]; //additional setup after loading the view, typically from a nib.Uiimageview*imageview = [[Uiimageview alloc]initwithimage:[[uiimage imagenamed:@"Appiconimage"] [imagewithrenderingmode:uiimagerenderingmodeautomatic]];//automatically select render mode depending on where the picture is locatedUiimageview*imageview1 = [[Uiimageview alloc]initwithimage:[[uiimage imagenamed:@"Appiconimage"] [imagewithrenderingmode:uiimagerenderingmodealwaysoriginal]];//the image is rendered by default with the original color of the picture.Imageview1.frame = CGRectMake (0, -, ImageView1.frame.size.width, imageView1.size.height); Uiimageview*imageview2 = [[Uiimageview alloc]initwithimage:[[uiimage imagenamed:@"Appiconimage"] [imagewithrenderingmode:uiimagerenderingmodealwaystemplate]];//use blue as the rendering color, ignoring the color of the original pictureImageview2.frame = CGRectMake (0, Max, ImageView1.frame.size.width, imageView1.size.height);    [Self.view Addsubview:imageview];    [Self.view Addsubview:imageview1];    [Self.view Addsubview:imageview2]; }

The following three functions are used to handle absolute values. Only the type of processing is different. int abs (int i);                   Handle the absolute value of the int type double fabs (double i); Handles the absolute value of the double type float FABSF (float i);           Handling absolute values of float types

IOS Part API Understanding

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.