Latest 2.0.0
Homepage https://github.com/liyongfei12138/QCKJLCWorking
License MIT
Platforms ios 10.0
Dependencies WebViewJavascriptBridge, AVOSCloud
Authors

![Version]( https://img.shields.io/cocoapods/v/QCKJLCWorking.svg?style=flat)

Requirements

依赖库有WebViewJavascriptBridge(6.0.3),AVOSCloud(11.6.1)
但是目前不做版本限制,默认使用最新版本依赖库,如有问题可手动导入固定版本依赖库。
'pod install'时如有问题可切换为'pod update'来拉取。

Installation

pod 'QCKJLCWorking' 

Author

liyongfei12138, [email protected]

Method of use


导入并继承


#import <MyAppDelegate.h>
@interface AppDelegate : MyAppDelegate 

@end


#import "AppDelegate.h"
#import "ViewController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate

#define WS(weakSelf) __weak __typeof(&*self) weakSelf = self;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    WS(weakSelf);
    [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];

      self.initWithSTViewControllerBlock = ^{

      weakSelf.window.rootViewController = [[ViewController alloc] init];
      [weakSelf.window makeKeyAndVisible];
   };

    return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

其中ViewController表示你项目中的rootViewController
并删除AppDelegate.m中多余的代理方法
self.initWithSTViewControllerBlock = ^{};此block为审核状态下2018的回调

Configuration

如果项目中启动页是加载LaunchScreen.storyboard中的控制器,需要将控制器的Storyboard ID设置为launch。否则会导致崩溃。
如果是加载Assets.xcassets中的图片作为启动页,则不需要以上配置操作。

在info.pist中需要添加<CL_APPKEY,CL_APPID>分别为key和id。
在info.pist中添加权限分别为

Privacy - Camera Usage Description
Privacy - Location Always Usage Description
Privacy - Location When In Use Usage Description
Privacy - Photo Library Additions Usage Description
Privacy - Photo Library Usage Description

打开网络权限。
打开通知权限。

Problem

Showing Recent Messages
ld: bitcode bundle could not be generated because .........

以上问题需要把TARGETS中 Enable Bitcode 设置为NO。应用最低版本设置为iOS 10.0

Latest podspec

{
    "name": "QCKJLCWorking",
    "version": "2.0.0",
    "summary": "just a demo",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/liyongfei12138/QCKJLCWorking",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "liyongfei12138": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liyongfei12138/QCKJLCWorking.git",
        "tag": "2.0.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "QCKJLCWorking/Classes/**/*",
    "resources": "QCKJLCWorking/QCKJBundle.bundle",
    "dependencies": {
        "WebViewJavascriptBridge": [],
        "AVOSCloud": []
    }
}

Pin It on Pinterest

Share This