Re: supportedInterfaceOrientations in Swift

2014-06-20 Thread Greg Parker
On Jun 19, 2014, at 5:39 PM, Roland King wrote: > On 20 Jun, 2014, at 5:04 am, Greg Parker wrote: >>> >>> override func supportedInterfaceOrientations() -> Int >>> { >>> } >>> >>> which makes some sense. I'm tripping over myself trying however to return >>> the correct Int without casting my c

Re: supportedInterfaceOrientations in Swift

2014-06-19 Thread Roland King
On 20 Jun, 2014, at 5:04 am, Greg Parker wrote: >> >> override func supportedInterfaceOrientations() -> Int >> { >> } >> >> which makes some sense. I'm tripping over myself trying however to return >> the correct Int without casting my casts to casts of casts. > > Please file a bug report. -s

Re: supportedInterfaceOrientations in Swift

2014-06-19 Thread Greg Parker
> On Jun 19, 2014, at 2:23 AM, Roland King wrote: > > I'm overriding supportedInterfaceOrientations in my view controller because I > want it to return Portrait + PortraitUpsideDown, and on iPhone > PortraitUpsideDown is not included in the standard return. > > The Objective-C method would l

supportedInterfaceOrientations in Swift

2014-06-19 Thread Roland King
I'm overriding supportedInterfaceOrientations in my view controller because I want it to return Portrait + PortraitUpsideDown, and on iPhone PortraitUpsideDown is not included in the standard return. The Objective-C method would look something like this -(NSUInteger)supportedInterfaceOrientati