Skip to content

This is a camera demo that calls Swift code from Objective-C.

Notifications You must be signed in to change notification settings

wubianxiaoxian/SkfSwiftCammer

Repository files navigation

微博 敲代码的手艺人

###这是一个自定义相机的demo,在github上面看到的demo是用swift写的,我写了一下用oc怎么调用

xcode版本要求 7.3

###在oc中调用swift文件方法

  1. 在工程中导入swift的类
  2. 创建全局预编译文件 PrefixHeader.pch
  3. 在预编译文件PrefixHeader.pch中 添加 #import ‘项目名-Swift.h")
  4. 然后就可以在oc中使用swift的类了

###截图

About

This is a camera demo that calls Swift code from Objective-C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published