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