People in Qian Feng--The development project of network learning Love limit Free

Source: Internet
Author: User

1. Complete project development process:

Product Manager to do demand research, write requirements

Product Manager completes prototype

Meeting of the project manager

Artwork with product manager out, cut chart

Ios,android analysis needs to assign tasks, project Manager to develop development progress

Server and client-side development interfaces

Clients complete documentation on demand

2. Role of version control

Multi-person Collaborative development project: each modified only its own template, modified after the need to synchronize each modified version control, each stage code has a version

Workaround: Use the version control tool

Tools: SVN GIB (open source World is more popular)

3, the use of versions

1. Connect to SVN server

Using the Versions tool

2. Introduction of new projects

The original project without SVN, can delete the original project

3. Check out Checkout

Items checked out, with SVN folder

4, update upadate (update other people's changes)

5, after modifying the code commit, the version number base will change

*/

4. Package button and UIView

#import <UIKit/UIKit.h>@interface Zjbutton:uibutton//Click to execute block//Note: The attribute modifier for block must be copy@property (copy,nonatomic)void(^action) (UIButton *button); @end #import"ZJButton.h"@implementation Zjbutton/*//Only override drawrect:if your perform custom drawing.//an empty implementation adversely affects performance Duri ng animation.-(void) DrawRect: (cgrect) Rect {//Drawing code}*/-(Instancetype) initWithFrame: (cgrect) frame{if(self=[Super Initwithframe:frame])    {[Self addtarget:self action: @selector (Btnclick:) forcontrolevents:uicontroleventtouchupinside]; }    returnSelf ;}//Let it go and execute the block .-(void) Btnclick: (UIButton *) button{if(self.action) {self.action (self); }} @end//=========================================#import <UIKit/UIKit.h>@interface UIView (Lcquickcontrol)//Add System button void (^action) (UIButton *button)-(UIButton *) Addsystembuttonwithframe: (CGRect) Frame title: (NSString*) Title Action: (void(^) (UIButton *button)) Action;//Add Picture button-(UIButton *) Addimagebuttonwithframe: (CGRect) Frame title: (NSString*) title background: (NSString*) Backgroud Action: (void(^) (UIButton *button)) Action;//Add a picture view-(Uiimageview *) Addimageviewwithframe: (CGRect) Frame Image: (NSString*) image;//Add Lebel-(UILabel *) Addlabelwithframe: (CGRect) frame text: (NSString*) text; @end #import"uiview+lcquickcontrol.h"#import"ZJButton.h"@implementation UIView (Lcquickcontrol)//Add System button-(UIButton *) Addsystembuttonwithframe: (CGRect) Frame title: (NSString *) title action: (void(^) (UIButton *)) action{Zjbutton*button=[Zjbutton Buttonwithtype:uibuttontypesystem]; Button.frame=frame;    [Button Settitle:title Forstate:uicontrolstatenormal]; Button.action=Action;    [Self Addsubview:button]; returnbutton; }//Add Picture button-(UIButton *) Addimagebuttonwithframe: (CGRect) Frame title: (NSString*) title background: (NSString*) Backgroud Action: (void(^) (UIButton *button)) action{Zjbutton*button=[Zjbutton Buttonwithtype:uibuttontypecustom]; Button.frame=frame;    [Button Settitle:title Forstate:uicontrolstatenormal];    [Button Setbackgroundimage:[uiimage Imagenamed:backgroud] forstate:uicontrolstatenormal]; Button.action=Action;    [Self Addsubview:button]; returnbutton; }//Add a picture view-(Uiimageview *) Addimageviewwithframe: (CGRect) Frame Image: (NSString*) image{Uiimageview*imageview=[[Uiimageview alloc]initwithframe:frame]; Imageview.image=[UIImage Imagenamed:image]; Imageview.userinteractionenabled=YES;    [Self addsubview:imageview]; returnImageView;}//Add Lebel-(UILabel *) Addlabelwithframe: (CGRect) frame text: (NSString*) text{UILabel*label=[[UILabel alloc]initwithframe:frame]; Label.text=text;    [Self Addsubview:label]; returnlabel; } @end

5, very simple method to obtain the properties of the model

Nsdictionary *dict=[nsjsonserialization jsonobjectwithdata:responseobject options:nsjsonreadingmutablecontainers Error:nil]; Nsarray*applist=dict[@"Applications"];  for(Nsdictionary *appdictinchapplist) {[Self createmodelcodewithdictionary:appdict name:@"Model"}} ... -(void) Createmodelcodewithdictionary: (Nsdictionary *) dict name: (NSString*) name{printf ("\[email protected]%s:nsobject\n", name.        utf8string);  for(NSString *keyinchdict) {printf ("@property (nonatomic,copy) nsstring *%s;\n", key.    utf8string); } printf ("@end \ n");}

People in Qian Feng--The development project of network learning Love limit Free

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.