ios - iOS8 touch position is limited in Landscape, as if window is Portrait on one side? -
i'm having bizarre problem here ios8. i've been googling , bashing head against wall couple of days no luck. i'm not sure how explain it, here goes...
apps have been running fine under ios7, compiling using xcode 6/ios8 i'm having few strange orientation problems. i'm not using xib file, instead creating window , view programatically. i'm running opengl in view, , handling else inside opengl. so, i'm collecting touches , passing them gl routines. has been fine forever, til now.
now ios8 seems if "touch window" rotating touches in landscape limited 1 side of screen, if display window landscape, touches within portrait window set on 1 side of screen.
what seems bizarre touches come through view on screen normal, y value stops @ 320 , goes no further. x acts normally. if turn device portrait (the view controller not auto rotate), works, in landscape switches strange behaviour.
i've tried can think of without changes, , not sure begin work out why happening. advice appreciated.
on ios8, uiscreen interface oriented. in (or should of) libraries before ios8, checks done adjust lack , swap width , height when application in landscape.
you should @ code makes rotation , remove it.
-[uiscreen bounds]
,
-[uiscreen applicationframe]
,
status bar frame and
keyboard frame interface-oriented.
(cf. wwdc2014 video - view controller advancements in ios8 @ 50:41)
Comments
Post a Comment