UIView.convertRect has changed to convert, but this function is not supported in iOS7.
What makes you say that? Are you hitting a compilation problem? Or a runtime problem?
FYI, I created a simple test app, set the deployment target to iOS 7, added the following code to my main view controller, and it compiles just fine.
override func viewDidLoad() {
super.viewDidLoad()
self.view.convert(CGRect.zero, to: self.view)
}
I don’t see any indication that
-convertRect:toView:
is unavailable on iOS 7, it’s just that the Swift name for it has changed to
convert(_:to:)
with Swift 3.
ps How are you debugging this on iOS 7? Last time I tried, Xcode 8 didn’t support iOS 7 on-device debugging or the iOS 7 simulator.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"