Ios Project developing MVVM pattern from scratch (ii)

Source: Internet
Author: User

1. I thought about this project yesterday, there are three parts, the first part is based on the aggregation of online data for a query function, the second part is XMPP chat function, the third part is more features.

2. Online query function, the main use of the technology is a GET request or a POST request, this online query function, we use the aggregation of the SDK, has its own API, so we need to do some of the requested class.

3.xmpp chat function, mainly used in the XMPP protocol, framework we use iOS xmppframework-master this open source project, detailed features, I will consider in detail.

4. More features, such as every app will have some settings and other functions, this also need to think about the function.

5. Interface words, there are 3 ways to do, code, Xib,storyboard these 3 ways, ipad I choose Xib to do, Identity Butler project I choose Code +xib to do, iphone project I chose Storyborad.

My feeling is.

1). The code flexibility is relatively high, for people who used to like to use code to draw the interface, may be more comfortable with the code, but now the iphone has a big screen, need to do some adaptation, then use the code to do, you need to do some restrictions in the background, I used the VFL and ordinary constraints, the amount of code more, And more prone to error, especially the VFL.

2). Before storyboard comes out, Xib is dragging the controls on the interface and then adjusting the interface. After storyboard out, later projects can use storyboard to replace the xib.

3). As for Storyborad everybody, have the interest to be able to own Baidu, we this project uses storyboard to do, the interface is very convenient.

6. The interface of the homepage is


7. Next, we'll do a function menu on the first interface. I first say the next menu, that is, 3 children per line, as to how many sub-items, this does not matter, the data source can be added by itself. The next interface, similar to the 51job home page.


Ios Project developing MVVM pattern from scratch (ii)

Related Article

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.