Ios from scratch Project MVVM mode (two)

Source: Internet
Author: User

1. The project yesterday, I think the future, there are three parts, the first part is based on an online data query on aggregation, the second part is XMPP chat function, and the third part is a lot of other features.

2. Online consulting, using the main technology, it is GET request or post requirements, the online query, we use it is the aggregation of the SDK, its own API. So we need to do some of the requested classes alone.

3.xmpp chat function, mainly used in the XMPP protocol. Framework we use iOS xmppframework-master this open source project. Specific functions, I will consider the specific.

4. Many other functions. is a set of features that each app will have. This also needs to think about the function.

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

My feeling is.

1). 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've used the VFL and the normal restraints. The amount of code is much more, and easy error. Especially the VFL.

2). Before the storyboard came out. Xib is the drag control on the interface. Then adjust the interface.

Storyboard out after. Future projects can replace Xib with storyboard.

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

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 join itself.

Next to do the interface, category like to 51job home.


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Ios from scratch Project MVVM mode (two)

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.