Common means of development (personal advice)

Source: Internet
Author: User

As a result of a recent project in an outsourcing company (Team Development 3 people) a friend together we have developed a relatively high speed and efficiency of the development method.

1. Building the interface for a program is no doubt just came up to see the prototype to see the UI to see the graph so the interface is the first to do so I do the interface of the common methods of personal views do not like to spray,

> If it is a dead-end interface (that is, size is not a dynamic change) then try to use storyboard and Xib to develop the benefits is lengthy to create the UI, the UI plus the attributes of the code no longer stacked in the class

> If it is dynamic change more frequent interface recommendations in code writing more flexible

> with Reveal tool development speed more efficient, sometimes the appearance of the interface is not show, or the size is always wrong, this time we use the Reveal interface together with the efficiency greatly improved I have cracked if there is a need for friends, I will follow up the detailed use of the method or people to search the internet has a lot of tutorials

2. Network module network is to deal with the server, the data from the server to display to the interface, or send data to the server to save, then the data related to the server and the conversion is JSON

> in the process of JSON above maybe you will say there are three Sbjson Jsonkit have KVC and so on, but these are all out of date OK? Why? Because the efficiency is low. Then I'll tell you how I used it.

> Network request you can use ASI or AFN or Apple's official nsurlrequest nsurlsession and so on but I recommend using AFN although the efficiency is not the highest but the code is much simpler , isn't it?

>json model with mjextention what? You don't know what mjextention? Well, you're out of the way, so check it out. Super easy to save a lot of time on a line of code

> So model how do you create it? Add the JSON returned to have 100 field properties, you have to manually create a model manually write 100 properties??? Don't you feel tired? If we're going to do a database cache, do you want to have a field coded back-coded?? Oh, my God, I thought it was too hard, so now I'm going to tell you a super handy tool without writing a code!!!!!

> go to appstory Download a tool called Code Auto Generator specifically called Automaticcoder and then a key to generate and then mjextention a code even if you have 10,000 nested models just click on the code!!

> Network Summary: Afn+mjextion+automaticcoder + Some of the others, look at it.

3. Event handling above Reactivecocoa seems pretty cool, but I'm not very good at it, so I'm not going to talk about it. I think it's my opinion. Maybe what I thought was inefficient but just wanted to help people who were as bitter as I used to be.

Summary: The development will inevitably encounter a lot of unnecessary to write some of the garbage code and often these things have great God help us to write a tool class is just our lack of the eyes to find beauty!!! —————— Liangzi

Common means of development (personal advice)

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.