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]; } |