Lan Yi iOS Learning picture editor

Source: Internet
Author: User

iOS learning in Lan Yi another month, feel learned a lot, here the environment good learning atmosphere is also very good, Liu Guobin teacher taught the picture editor, simulated beauty 美图秀秀, the function to achieve the border, effect. filters, and graffiti.
#pragma mark-image Picker Controller protocol method

-(void) Imagepickercontroller: (Uiimagepickercontroller *) Picker Didfinishpickingmediawithinfo: (NSDictionary< NSString *,id> *) info{

/***** Initialize and jump to Editing view Controller *****/

Access to a View Controller (Initwithcoder initialization method) within the Storyboard ask Price

The following ID is the "Storyboard ID" set in the Storyboard//

___ If it is written in pure code, it is not so, direct alloc,init initialization

Bianji_bviewcontroller *bian=[self.storyboardinstantiateviewcontrollerwithidentifier:@ "hehe"];

Bian.selectedimage=info[uiimagepickercontrolleroriginalimage];

Because the current View controller is not managed by the navigation bar, you cannot use Self.navigationcontroller to jump to the page. But since Uiimagepickercontroller is a subclass of the navigation controller, you can use Uiimagepickercontroller's power object directly to jump to the page (that is, the picker parameter).

[Picker Presentviewcontroller:bian animated:yes Completion:nil];

}

Lan Yi iOS Learning picture editor

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.