[ad_1]
Background: full Swift/iOS improvement noob.
Making an attempt to replace an present iOS challenge to newest minimal supported variations and I’m encountering the "Methodology doesn't override any technique from its superclass"
error for each the leftViewWillLayoutSubviews
and rootViewWillLayoutSubviews
strategies.
Observe: the challenge I’m up to date LGSideMenuController
pod replace from model 2.1.1 to three.1.2.
import UIKit
import LGSideMenuController
class SideMenuController: LGSideMenuController {
different code
override func leftViewWillLayoutSubviews(with dimension: CGSize) {
tremendous.leftViewWillLayoutSubviews(with: dimension)
leftView?.body = CGRect(x: 0, y: 0, width: dimension.width, peak: dimension.peak)
}
override func rootViewWillLayoutSubviews(with dimension: CGSize) {
tremendous.rootViewWillLayoutSubviews(with: dimension)
rootView?.body = CGRect(x: 0, y: 0, width: dimension.width, peak: dimension.peak)
}
}
Is leftViewLayoutSubviews
the up to date technique of leftViewWillLayoutSubviews
and rootViewLayoutSubviews
the up to date technique of rootViewWillLayoutSubviews
?
In that case, how would I be capable to get hold of dimension
worth to set body
?
[ad_2]