Game Development Community

UIDeviceOrientationIsPortrait

by yurembo · in Torque 2D Beginner · 11/18/2015 (5:30 am) · 3 replies

I compile T2D for iOS for the first time.
When I compile an engine to iOS I get an error:
"No matching function for call to 'UIDeviceOrientationIsPortrait'"
Why?

#1
11/18/2015 (5:47 am)
What version of XCode? What version of iOS?
#2
11/18/2015 (6:14 am)
I installed lastest versions of products: Xcode 7.1, iOS 9.1 on simulator
#3
11/18/2015 (10:57 am)
I looked at code and see that 'UIDeviceOrientationIsPortrait' gets a value of a constant 'UIDeviceOrientationLandscapeRight' then I replace calls function to this constant.
Well done