Skip to content

Instantly share code, notes, and snippets.

View klaus01's full-sized avatar

柯磊 klaus01

  • ChengDu, China
View GitHub Profile
@klaus01
klaus01 / AppDelegate.h
Created January 16, 2019 03:35
使用 Runtime 消息转发,实现 AppDelegate 中的代码模块化。
//
// AppDelegate.h
// TestMethod
//
// Created by 柯磊 on 2019/1/2.
// Copyright © 2019 AMonster. All rights reserved.
//
#import <UIKit/UIKit.h>
@klaus01
klaus01 / AppDelegate.swift
Last active January 16, 2019 03:55
不集成微信 SDK 实现登录权限和分享内容
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let vc = SLAppStartUpVideoVC()
WeChatServices.appID = "xxxxx"
WeChatServices.appSecret = "xxxxx"
// 还需要配置 Info.plst 的 CFBundleURLTypes 和 LSApplicationQueriesSchemes