Basically think about how to write, and also in this week began to take time to cash before the notice.
First of all, if we enter ASIHTTPRequest and nsurlconnection in Baidu, we can immediately find the CSDN gnicky article, This predecessor introduced the reason why we need to choose asihttprequest instead of nsurlconnection. This predecessor actually took StackOverflow inside the article to take out a bit (actually on the first paragraph, after two paragraphs, I already did not know the predecessor's purpose), we look at the original text: Why should I prefer ASIHTTPRequest over Nsurlconnection for downloading files from the Web?. I found the answer to several people's CTRLCV (that's called Induction!) )
Let me summarize: First, ASI has more agents. Second, ASI has a better caching mechanism. Three, NS will have a data overflow. Four, no bug. Five, thanks to encapsulation, easy to use.
In contrast, there is also a package in NS package, called Afnetworking,asi and comparison?
Here are two more articles: The Thorn Moon Dance Star and the Gao Jiajun. we can see in the Gao Jiajun predecessors article, whether it is the integrity of the agent, the speed of operation, optimization, bug issues , ASI has greatly surpassed the AF. Then why do we have to choose ASI? Note: Read the article must look at the time! (I won't say three times, but it's important!) )
Stack answer is 4 years ago, Gao Jiajun predecessor's article is 13, Thorn Moon Dance Star form is 14!
In the past few years, the native evolution of iOS, as well as the version update of AF, has greatly changed the current landscape. And what about ASI? It stopped updating as early as 11.
So how about now? The Star of the Thorn Moon shows the fact that AF performance is beginning to go beyond the ASI, while on the other side on StackOverflow, asihttprequest vs afnetworking vs Nsurlrequest here also shows the continuous update of AF, and NS progress on the IOS7 and the principle similarity on Swift. Received more support from their peers.
We see that the answer to stack here is updated to 14. Therefore, in the speech, has been inclined to AF.
But this is not enough.
When doing the program, the most important part is never just simply trust others before you try it!
So we're going to start experimenting with ASI and AF in the next chapter.
======================= This is a split line to brush the sense of presence ======================
I always feel that one-time do not talk too much content is better, people always first to remember to digest. But the memory is wonderful. A person who is good at a professional does not necessarily have memories of other things. For example, I am a lawyer's small partner, the case of the various cooked, but their own things, we have discussed the matter is not remember. Often clearly yesterday just said things, a sleep after the forgotten.
"Hey, fortunately, there are records." ”
"You really need to check the brain ... ”
"You have to remember it!" ”
"I'm not your cloud disk!" ”
So the next day was a similar conversation ...
======================= here is the split line of the late night canteen ======================
Drink a cup of coffee in the afternoon, really is very pleasant thing, want to also know that that year Java name Origin also comes from the coffee. A stressful life may be able to do more work. However, often relaxation is a way of inspiring inspiration.
The struggle for request in iOS (on)