iOS Open source project Mobileproject feature Point Introduction

Source: Internet
Author: User
Tags local time blank page

A: Mobileproject introduction

The Mobileproject project is a collection of open source features built in the MVC pattern, written on objective-c, to address the repetitive development of new projects for common functional modules, Mobileproject for the construction of the project is also very clear division, the responsibilities of each module is also relatively clear,Mobileproject also introduced some of the common third-party plug-ins, macro definitions, tool help class, etc. the whole project is also constantly updated and maintained, the function points will be constantly updated ; Code support iOS7 later version;

II: Project Framework Content

Three: Function Point introduction

1:jspatch Hot Update Feature

Believe that the Jspatch plug-in for the project's hot update should be a more common function, in the mobileproject to achieve a hot update on the effect, and a package of a help class, for the hot update of the JS file download and application of the description , including some download frequency control, etc.;

2:application of LKDB entity mapping database

In peacetime development process often encounter with the database to deal with, and Lkdb is a good entity mapping into a database plug-in, you can easily complete the entity Pin database column mapping, and can do some on the entity level of deletion and modification of the operation, of course, can also be used in SQL statements To be able to meet the application of our usual projects;

3: Application of Baidu Map

In the normal project for the use of maps may include display and positioning and other related content,Mobileproject Project There is a map of Baidu car Route Generation example, and modify the effect of pin and pop-up window, the code also use Baidu map to locate, And the mobile phone in different languages to locate the city's processing function, so that its location to obtain the city name must be Chinese, to exclude the language caused by the phone set the city name is not correct;

4: Two-dimensional code function application

Mobileproject in the QR code is mainly based on the plug-in Lbxscan development, its packaging has met the usual two-dimensional effect we see, the project is mainly about scanning and follow the album to select photos and then read the above QR code effect, Of course, Lbxscan can also read the function of bar code, can go to see its official instance effect;

5: Photo Upload function and accompanying progress upload effect

Photo Upload should be the necessary function module for each app, so mobileproject a simple collation of it, mainly implemented, including the choice of photos, photos, browse large images, get pictures GPS, picture name, picture photo time, When uploading to the picture to adjust, compress pictures, pictures to show the effect, the project also has another kind of upload effect, is the upload with progress, choose a few photos it will be uploaded each in the room and have the corresponding fan progress effect;

6: Font fit model

For the current iphone models have been more and more states, in the design of only one case, to different screen size to display different font size and layout, in Mobileproject defined several macros, which is assumed to be iphone5 out, Through the use of these macros can be compatible with the layout of the ipone6+, such as the previous on the large screen font becomes smaller and so on;

7: Logging

The logging function should be a must for each app, the project uses the cocoalumberjack to log the display, and on the public page has been added two display pages, used to show the contents of the record, in the detailed error record there is a message sent function, The error content can be sent to the developer through the Mail, solve the project on the issue of the collection of bugs,Mobileproject in accordance with the different environment settings record level, but also in the project added in the console for colored font prompts;

8: List blank page show

Project sometimes in the list of no data or network requests appear to have the relevant hints,Mobileproject also introduced a blank hint effect for its function, basically can meet the development requirements of peacetime;

9: Custom pop-up window

Custom Popup Uialert after IOS7 and IOS8 have a different effect, often in some projects require simulation of the system's Uialert style to write, in order to add a custom pop-up window, simulation system Uialertview effect , add a pop effect with Uitextview, other custom views are created based on the project, and there are several instances of this in the example;

10: Other function modules

A: About the function of the boot page package, as long as a simple pass through a set of pictures can implement the function module of the Guide page

B: About the launch of the advertising function of the package, the same is also a set of images can be displayed, image or load server, downloaded and saved locally;

C: Friends of the management Help class package, mainly about the friends of the League Statistics Code and page recording function, combined with the runtime function to record the effect

D: Recording device unique identification function, in iOS is no longer able to acquire the unique code of the device, a plug-in mobileproject introduced in order to obtain the device's fcuuid, the same can achieve the corresponding effect;

E: Provincial urban three-level linkage effect function, from the local reading and loading of provincial and municipal data, you can bind the default value and the effect after selection;

F: Also about the function of third party login of whether and the functions shared by the third party of AU

G: Package mbprogresshud Extension class, define some common hints effect, see Mbprogresshud+mp class

H: Integrated Cyltabbarcontroller Plug-in, add the bottom 4 tabbar menu to the project, and have the corresponding unread alert effect, and click event Application;

I: Integrated push message push function (ThirdMacros.h to modify the corresponding key value), the certificate will also use your own message certificate;

J: Add Flex, open in local beta,Flex is an in-app debug Tool Flipboard officially released for iOS development that works well on simulators and physical devices, and developers don't need to connect them to lldb /xcode or other remote debugging servers, you can view or modify the status of a running app directly.

K:UITableViewCell countdown function , instance because there is no server interface, so the time is based on local time, the official project time from the server to obtain;

L: Introduce Webviewjavascriptbridge for H5 interaction and annotate the official website instance

Four: summary

The above mainly listed some of the current projects in the package or instance function module, there are some other applications are not in this detailed explanation, such as network application, macro definition, Classification extension class, other small help class, can download the source code for viewing, the project is also in continuous improvement, For the project framework is also a step forward, for the code is also constantly optimized;

Project source code address:https://github.com/wujunyang/MobileProject;

If you like or have help can point star Kazakhstan, if you also have free time can be perfect together, keep the focus will continue to update the function;

iOS Open source project Mobileproject feature Point Introduction

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.