ios - Root View Controller discrepancy between iOS7 and iOS8 -


my app crashing on ios7 since reason rootviewcontroller uinavigationcontroller instead of uisplitviewcontroller. app crashes on first line let splitviewcontroller = self.window!.rootviewcontroller uisplitviewcontroller in appdelegate. there fix or workaround this? works fine on ios8

okay issue uisplitviewcontroller used ipads, not iphones. make sure target under project set ipads if need have uisplitviewcontroller. if want support both devices recommend checking see device idiom app running on launch , alternate between 2 storyboards (if make sure target universal devices instead of ipad). <--- covers ios 7 support, , reason app not crashing on ios 8 because uisplitviewcontroller allowed on ios devices when not allowed on iphones in ios 7.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -