Swift integrates AU stats

Source: Internet
Author: User

Hang daddy ah; AU statistics official does not support Swift; the integration of various problems according to OC Bridge; Helpless harassment customer service one hours finally fix, integration code and OC is not the same AH!

Here is a customer service answer and run a successful integration process in your own code: 1 Follow the first step in the integration documentation to add the. Framework, which is added in link Binary with Libraries-->add. Framework 2 Introduce header files into your own bridging files: #import <UMMobClick/MobClick.h> and compile 3didFinishLaunchingWithOptions add the following code

Mobclick.setlogenabled (True)

Let obj = Umanalyticsconfig . init()

Obj.appkey = Appdelegate.umappkey

Mobclick.startwithconfigure (obj)

4 Calling related APIs

Mobclick.endevent ("")

The following is the customer service is not in the code to verify the feasibility of the

If you need to add other settings can be added umanalyticsconfig, such as channel obj.channelid= ""

Swift integrates AU stats

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.