IOS common MVC model project framework MobileProject, mvcmobileproject

Source: Internet
Author: User

IOS common MVC model project framework MobileProject, mvcmobileproject

When the project is not busy recently, I decided to integrate some common and common content into a project framework, so that we can quickly build it in a new project. In fact, after several projects, there is always some repetitive creation work. You can use the content of this project for direct development. The MVC layered mode is used, this article will focus on the hierarchy and some integrated third-party features; of course, the source code of this project has been uploaded to gitHub (Address: https://github.com/wujunyang/MobileProject, of course, if it is helpful to you, remember to give a star. If you have time, you can complete it together, or leave a message if you have any questions;

This project is created on XCode7. If your XCode version is earlier than 7, you can delete several 7 features in the code to run the program normally; this project uses Pods to manage some third-party plug-ins. The knowledge about Pods is not the focus of this Article. If you do not know it, you can search on the network; the project uses two Targets to differentiate the product environment from the test environment, and then sets different connection addresses during network interaction. If multiple versions in different regions are configured through different Targets, there are some differences through the Targets logo. the hierarchical division of projects is usually used now. If you have better suggestions, you will be updated to the project in time; the project framework will also constantly update and integrate new content;

 

 

A overall framework


The MobileProject is the Main project, and Pods is the project that automatically manages some third-party plug-ins. In the MobileProject, the project is divided into six parts: Main, Expand, Resource, Vender, SDKFile, and Supporting Files;

I. Main (Main): Mainly stores MVC content files. The sub-level is the content of each major function module. Currently, several mobileprojects have been created by default, including Logger (logs), Preview, Home, Public, Base, and Login );

Platform: ios, '7. 0' pod 'afnetworking ',' ~> 2.6.0 'pod 'sdwebimage', '~> 3.7 'pod 'jsonmodel', '~> 1.0.1 'pod 'masonry', '~> 0.6.1 'pod 'FMDB/common',' ~> 2.5 'pod 'FMDB/SQLCipher', '~> 2.5 'pod 'coalumberjack', '~> 2.0.0-rc 'pod 'BaiduMapKit' # Baidu map SDKpod 'umenganalytics-NO-IDFA '# umeng statistics without IDFA SDKpod 'gtsdk' # SDKpod 'umengsocial',' ~> 4.3 '# umeng social sharing and third-party Login

 

B integration content

Currently, the MobileProject has integrated Baidu map positioning, umeng statistics, CocoaLumberjack logging, push message pushing, umeng sharing, and umeng third-party login content. In the future, it will also integrate some commonly used content; you only need to replace the corresponding key for the above parts. You need to use your certificate for a push. The corresponding instance code is in the project and has been verified and tested; the initialization code is included in AppDelegate. Three third-party logon functions (QQ, Sina) and five sharing functions (QQ space sharing, circle of friends, Sina Weibo sharing, QQ Weibo sharing, and friends) are provided, the corresponding code is stored in the project Preview. The CocoaLumberjack log record display and viewing page is also added;

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.