iosmauiinfo.plistdevice-orientation

.NET Maui iOS not preventing rotation


I've found that on iPad, the app will still rotate even though I have set it not to in the info.plist (see attached). Anyone else have this issue?

info.plist


Solution

  • Right click on you plist > Open With > Generic PList Editor.

    You will see that there is:

    Supported Interface Operations, And Supported Interface Operations (iPad)

    Start deleting...

    Edit: Other editors work as well, even Notepad. Just giving example how to fix it.