Joe Masilotti February 2016
UI Testing cannot interact with anything outside of your application. In your scenario, the framework can no longer do anything once your app opens Settings.
To verify this, try printing out the app's hierarchy once Settings opens. You will notice that nothing in Settings nor the navigation bar will show up - you will only see your app's information.