maxCham's recent timeline updates
maxCham

maxCham

V2EX member #205960, joined on 2016-12-14 16:46:46 +08:00
Xcode11 beta 的打包问题
iOS  •  maxCham  •  Aug 5, 2019  •  Lastly replied by maxCham
3
Swift 等价于[NSBundle bundleForClass:[self class]]
iOS  •  maxCham  •  Jul 11, 2019  •  Lastly replied by onevcat
13
小白请教 MongoDB 问题
MongoDB  •  maxCham  •  Jan 31, 2018  •  Lastly replied by maxCham
7
mongoDB Compass 与 Docker
MongoDB  •  maxCham  •  Dec 19, 2016  •  Lastly replied by maxCham
1
maxCham's recent replies
Aug 5, 2019
Replied to a topic by maxCham iOS Xcode11 beta 的打包问题
升级 Xcode 11 beta 5 之后解决
Aug 2, 2019
Replied to a topic by maxCham iOS Xcode11 beta 的打包问题
@MarginK 企业 app,无需上架,做了链接,感觉没用
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
谢谢大神们,我找到了,原来不是语法问题;是我理解错了,用会 Bundle(for: self.classForCoder())就可以了
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
哈哈,不是不是,只是搜索到一个帖子的标题,内容都是一样的,所以走来 V 站问问大神,交流交流
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
let type = Display. typeList
let bundle = Bundle(for: type(of: self))
就会有错
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
public enum DisplayType {
}
public final class Display {
class var typeList: DisplayType {
}
}
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
我的 type 也是这样的一个 class 来的:class var typeList: DisplayType {}
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
Bundle(for: self.classForCoder()) 这个肯定对,因为传进去的就是要 anyClass; 但是既然是 anyClass,为什么我这个自定义的 type 就不行了呢?
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
我的 type 系一个自定的类型,swift3 时这样写没问题;转 swift4 时就会报这个 type 是 Cannot call value of non-function type
Jul 11, 2019
Replied to a topic by maxCham iOS Swift 等价于[NSBundle bundleForClass:[self class]]
不能了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4234 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 00:55 · PVG 08:55 · LAX 17:55 · JFK 20:55
♥ Do have faith in what you're doing.