In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you how to use the frame QMUIKit in the iOS interface, the content is very detailed, interested friends can refer to, hope to be helpful to you.
For mobile APP, the interface development of client (iOS or android) is an essential work. In order to reduce the workload of interface development, but also to improve the speed of development, it is meaningful to choose a good interface framework.
IOS has many open source interface frameworks, such as cocoaui, yykit, qmui_ios and so on.
The use of the QMUI_IOS interface framework is introduced here.
Qmui_ios, as described on github, is a solution dedicated to improving the efficiency of UI development.
The official website of qmui_ios is http://qmuiteam.com/ios, which details the use of qmui and its functions.
Qmui_ios 's project address is https://github.com/QMUI/QMUI_iOS, and according to the project modification record, code was submitted not long ago (before September 18, 2018.18).
Qmui_ios has a project that demonstrates functionality: https://github.com/QMUI/QMUIDemo_iOS, and a screenshot of this project running looks like this:
Readers can try to run the above projects to verify the effectiveness of the various controls provided by qmui_ios. You should note that the version of qmui used by this demo is different from that described below.
The next step is to introduce the use of qmui_ios with actual demonstration examples. Qmui is the latest version 2.7.6.
According to the official website, there are three ways to use qmui, namely: using CocoaPods, using Carthage, and directly using qmui as a sub-project.
Small program imports qmui in the way of CocoaPods. The command to install cocoapods is as follows:
Sudo gem install-n / usr/local/bin cocoapods-- pre
Pod setup
After that, you can use the pod command, which can be viewed as follows:
Pod-help
For example, search for qmui, a third-party library:
Pod search QMUIKit
You can see this output, and note that the commands in the red box below will be used in the following introduction:
(1) create a new project and introduce qmui
Here cocoapods is used to introduce the qmui project.
In the business project (here is the demo project), create a Podfile file and add the following:
Platform:ios,'8.0'
Target 'ZhiYin' do
Pod 'QMUIKit',' ~ > 2.7.6'
End
The screenshot is as follows:
Then in the directory where Podfile is located, execute at the command terminal:
Pod install
After the successful execution of this command, a Pods folder is generated in the directory where the demo project is located, as shown below:
At this point, double-click ZhiYin.xcworkspace to open the project. On the project navigation page of xcode, you can see that there is an additional Pods project, which is the container for managing all third-party libraries, as shown below:
At this point, the qmuikit library has been imported into the demo project and is ready to use.
This is a way to use qmui through cocoapod, and readers can also directly pull qmui into business projects to use.
(2) use the function of qmui
For example, in the screenshot below, when loading APP, the function of qmui is used:
The effect is as follows:
On how to use the framework QMUIKit in the iOS interface to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.