Lan Yi iOS Picture editing module

Source: Internet
Author: User

Today, Liu Guobin teacher spoke about how to edit the various types of pictures, how to convert the data in the code into a local file, and then take out the use. Feel these more difficult to understand, after class also with a lot of events to practice, this morning also said how to create a server, to nuclear many people together to develop a project, to achieve a multi-person file synchronization, these feelings are very useful.
Teacher Liu in this period of time lectures very meticulous, may know this paragraph of content is more important, personal feeling now learn things although not much, but very important, the foundation must play well.
Sorted out today's difficult points

-(void) Navigationcontroller: (Uinavigationcontroller *) Navigationcontroller Willshowviewcontroller: ( Uiviewcontroller *) Viewcontroller animated: (BOOL) animated{

----------------------Functional Partitioning-----------------------------

Assign the system-prepared navigation controller to the property declared by itself

If you don't put him in advance to declare a Navigationcontroller property here to catch it, then in the left side of the doneaction/button click event to get a navigation controller push to the new page,

Self.ng=navigationcontroller;

Set the size of a control on a system page to display a picture otherwise it will be added to the control cover

UIView *puview = [ViewController.view.subviews firstobject];

CGRect frame = puview.frame;

Frame.size.height = 567;

Puview.frame = frame;

----------------------Functional Partitioning----------------------------

Self.vv=[[uiview alloc]initwithframe:cgrectmake (0, 560, 375, 100)];

Self.vv.backgroundcolor=[uicolor Redcolor];

[Viewcontroller.view ADDSUBVIEW:SELF.VV];

SELF.SV = [[Uiscrollview alloc]initwithframe:cgrectmake (0, 20, 375, 80)];

Self.sv.backgroundColor = [Uicolor Bluecolor];

[SELF.VV ADDSUBVIEW:SELF.SV];

UIButton *donebtn = [[UIButton alloc]initwithframe:cgrectmake (325, 0, 50, 20)];

[Donebtn settitle:@ "Done" forstate:uicontrolstatenormal];

[SELF.VV ADDSUBVIEW:DONEBTN];

[Donebtn addtarget:self Action: @selector (Doneaction) forcontrolevents:uicontroleventtouchupinside];

}

Lan Yi iOS picture editing module

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.