Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Prevent iOS top menu from sliding down

Discussion in 'iOS and tvOS' started by ina, Mar 21, 2012.

  1. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,059
    Even with the status bar hidden, it seems that there's still a slide-out panel from iOS that seems to interfere with touch input from the top part of my game. Is there a way to deactivate this OS slideout?
     
  2. Velvety

    Velvety

    Joined:
    May 4, 2009
    Posts:
    150
    I was trying to figure this out too. I don't think you can prevent it (I might be wrong but couldn't find a way to). I do think you can change where it slides out from though (default is whatever the iOS default is). I believe there is a player setting for this somewhere in the iOS section. I don't have Unity on this computer so can't check at this moment.
     
  3. opsive

    opsive

    Joined:
    Mar 15, 2010
    Posts:
    5,093
    No, there is no way to disable the notification center from appearing. You can't change the location where it starts to slide out from either.
     
  4. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,059
    Other apps seem able to disable this or at least switch from landscape or horizontal slide menus for the notification slider.
     
  5. coolpowers

    coolpowers

    Joined:
    Mar 23, 2010
    Posts:
    125
    Do you have an example of an app that does this?
     
  6. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    There are no apps that can do this.
    They only pretend that they are able to by fixing the view into one orientation and make the game rotate on the opengl context only -> for the device the app is still running portrait while the game renders in landscape for example.

    Thats a thing that apple might more sooner than later consider a rejection reason as it messes up the whole idea behind the notification center
     
  7. coolpowers

    coolpowers

    Joined:
    Mar 23, 2010
    Posts:
    125
    Alright, do you have an example of an app that does what you describe, dreamora? Because it does indeed sound horrible :)
     
  8. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    For what it's worth, there is little to nothing that UT can do to alleviate this issue as of iOS 5.1. And I too am puzzled that Apple hasn't seen fit to address it, given how "serious" the folks at Cupertino like to assert that they are about games on iOS these days.

    It's a no-brainer issue for any game that involves swiping your fingers across a whole-screen play area - which is a very popular mechanic element these days.

    Oh well, maybe in iOS 6 ...
     
  9. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    There was already a lot of discussion at apple dev forums about this when the feature was introduced. Game devs wanted a way to block it but Apple devs said it was by design and no plans to change it back then.
     
  10. Recluse

    Recluse

    Joined:
    May 16, 2010
    Posts:
    485
    I've been working on a two-player game for a client that requires both players to swipe left/right at the bottom / top of the screen. The pull down menu keeps getting triggered, which is a pain in the arse. It looks like there's nothing I can do to stop this.