We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简单粗暴的: 从monkeyPaws中的四个.swift拖到项目中
.swift
pod安装,但是坑略多, 真的踩坑了再at我吧~
1.在AppDelegate.m:
AppDelegate.m
#import "YouProjectName-Swift.h"
@property (strong, nonatomic) MonkeyPaws *paws;
didFinishLaunchingWithOptions
self.paws = [[MonkeyPaws alloc] initWithView:self.window tapUIApplication:true];
2.在MonkeyPaws.swift:
MonkeyPaws.swift
MonkeyPaws
改前: 改后:
嗯~ 然后呢, 其他问题看图(来自OC和Swift混编开发配置):
重点: 然后先别管报错, 直接试着撸起来
The text was updated successfully, but these errors were encountered:
No branches or pull requests
代码入库
简单粗暴的:
从monkeyPaws中的四个
.swift
拖到项目中pod安装,但是坑略多, 真的踩坑了再at我吧~
修改如下代码
1.在
AppDelegate.m
:#import "YouProjectName-Swift.h"
YouProjectName是你项目的名称@property (strong, nonatomic) MonkeyPaws *paws;
didFinishLaunchingWithOptions
启动回调里加入代码self.paws = [[MonkeyPaws alloc] initWithView:self.window tapUIApplication:true];
2.在
MonkeyPaws.swift
:MonkeyPaws
该类需要被@objc修饰改前:
改后:
嗯~ 然后呢, 其他问题看图(来自OC和Swift混编开发配置):
重点: 然后先别管报错, 直接试着撸起来
The text was updated successfully, but these errors were encountered: