maxCham 最近的时间轴更新
maxCham

maxCham

V2EX 第 205960 号会员,加入于 2016-12-14 16:46:46 +08:00
Xcode11 beta 的打包问题
iOS  •  maxCham  •  2019-08-05 15:38:01 PM  •  最后回复来自 maxCham
3
Swift 等价于[NSBundle bundleForClass:[self class]]
iOS  •  maxCham  •  2019-07-11 12:30:25 PM  •  最后回复来自 onevcat
13
小白请教 MongoDB 问题
MongoDB  •  maxCham  •  2018-01-31 16:04:09 PM  •  最后回复来自 maxCham
7
mongoDB Compass 与 Docker
MongoDB  •  maxCham  •  2016-12-19 12:07:41 PM  •  最后回复来自 maxCham
1
maxCham 最近回复了
2019-08-05 15:38:01 +08:00
回复了 maxCham 创建的主题 iOS Xcode11 beta 的打包问题
升级 Xcode 11 beta 5 之后解决
2019-08-02 11:22:25 +08:00
回复了 maxCham 创建的主题 iOS Xcode11 beta 的打包问题
@MarginK 企业 app,无需上架,做了链接,感觉没用
2019-07-11 11:29:54 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
谢谢大神们,我找到了,原来不是语法问题;是我理解错了,用会 Bundle(for: self.classForCoder())就可以了
2019-07-11 11:21:59 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
哈哈,不是不是,只是搜索到一个帖子的标题,内容都是一样的,所以走来 V 站问问大神,交流交流
2019-07-11 11:16:12 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
let type = Display. typeList
let bundle = Bundle(for: type(of: self))
就会有错
2019-07-11 11:14:56 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
public enum DisplayType {
}
public final class Display {
class var typeList: DisplayType {
}
}
2019-07-11 11:13:47 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
我的 type 也是这样的一个 class 来的:class var typeList: DisplayType {}
2019-07-11 11:12:30 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
Bundle(for: self.classForCoder()) 这个肯定对,因为传进去的就是要 anyClass; 但是既然是 anyClass,为什么我这个自定义的 type 就不行了呢?
2019-07-11 11:10:40 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
我的 type 系一个自定的类型,swift3 时这样写没问题;转 swift4 时就会报这个 type 是 Cannot call value of non-function type
2019-07-11 11:05:03 +08:00
回复了 maxCham 创建的主题 iOS Swift 等价于[NSBundle bundleForClass:[self class]]
不能了
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3347 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 11:52 · PVG 19:52 · LAX 04:52 · JFK 07:52
Developed with CodeLauncher
♥ Do have faith in what you're doing.