D3Notice icon indicating copy to clipboard operation
D3Notice copied to clipboard

非UIViewController引用D3Notice报错

Open lgs3137 opened this issue 8 years ago • 6 comments

你好大神,新手学习Swift cocoapods已经正常引入,import D3Notice也没有提示错误,但引用 D3Notice.showNoticeWithText(NoticeType.success, text: "suc",time: D3Notice.longTime, autoClear: true) 的时候报错了。。。 Use of unresolved identifier 'NoticeType' 😄这是我插入的姿势不对么!?

lgs3137 avatar Jul 06 '16 12:07 lgs3137

不如 不用cocoapods 直接 放那个swift文件 调用 看看

androidcn avatar Jul 06 '16 12:07 androidcn

....嗯,我就想让源码目录看起来比较清新点儿~ 我再试试看吧!

lgs3137 avatar Jul 06 '16 12:07 lgs3137

单独放Swift文件也不行。。。一样的错误~ 我的xcode是7.3.1,Swift2.2

lgs3137 avatar Jul 06 '16 13:07 lgs3137

不过我用https://github.com/johnlui/SwiftNotice 这个就正常~ 我对比下他们的方法看看~

lgs3137 avatar Jul 06 '16 13:07 lgs3137

@lgs3137 额,pod上面的是旧版的,我更新了一下pod上面的版本,修复了

mozhenhau avatar Jul 14 '16 06:07 mozhenhau

@mozhenhau 好的~thanks

lgs3137 avatar Jul 15 '16 07:07 lgs3137