Commit 87d28a69 by Sarkizz

把open的function移到class声明处(extension 的open要override的话需要在前面加@objc)

parent 04aa9223
...@@ -92,9 +92,7 @@ open class MRUpdateManager: NSObject { ...@@ -92,9 +92,7 @@ open class MRUpdateManager: NSObject {
public var status: UpdateStatus { public var status: UpdateStatus {
return _status return _status
} }
}
extension MRUpdateManager {
open func getDataFromNetwork(_ complate: (_ data: Any?, _ error: Error?) -> Void) { open func getDataFromNetwork(_ complate: (_ data: Any?, _ error: Error?) -> Void) {
complate(nil, nil) complate(nil, nil)
} }
......
...@@ -37,9 +37,7 @@ open class CommonScanningViewController: UIViewController, MRScanningProtocol { ...@@ -37,9 +37,7 @@ open class CommonScanningViewController: UIViewController, MRScanningProtocol {
scanAndAnimate(start: true) scanAndAnimate(start: true)
} }
} }
}
extension CommonScanningViewController {
open func setupScanningViews() { open func setupScanningViews() {
setupScanningInterface { (_, rectLineView, lineView) in setupScanningInterface { (_, rectLineView, lineView) in
rectLineView.borderWidth = 0.5 rectLineView.borderWidth = 0.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment