如题
swift的三方套件里面有个method是用map函数写的
import后没办法转成objc的method
小鲁想问有没有解决方法
拜托了
swift method 程式码如下
public func addSegmentsWithTitlesAndViews(segments: [(title: String, view: UIView)]) {
addButtons(segments.map { $0.title })
addViews(segments.map { $0.view })
redrawComponents()
}
先谢谢了