how to add close button to modal view corner which is presented in UIModalPresentationPageSheet?
I want to add a floating close (x) button at the corner of an UIModalPresentationPageSheet View. The effect is like below: But adding it to the parent view makes it appear behind the Page Sheet (and also impossible to tap) and adding it to the Page Sheet will make part of it hidden, since it's out of the view area. Is there any better solution? Any suggestions are appreciated. You can try and add it to the the topmost application window: add.modalPresentationStyle = UIModalPresentationPageSheet; [self presentViewController:add animated:YES completion:^{ [[[[UIApplication sharedApplication]