You cannot show or return to the home screen programmatically (without using APIs not allowed by Apple).
Edit: Oops - sorry, my bad. The cases where I use dismiss are not returning to the main ViewController. I just ran a test on an app & you can use self.dismiss in a ViewController that is segued from the main ViewController & you won't get an error - but it won't do anything either.
=======================================================================================================================
Not sure I understand you correctly Erel. I have several apps that use self.dismiss in multiple ViewControllers & I've never had any of them rejected at app review. Or are you meaning something else?
- Colin.