What is the height of the modalPresentationStyle - FormSheet on iPad? I wrote a line of code to get the height of self.view as follows:
println("Height - modalPresentationStyle FormSheet: \(self.view.frame.size.height)")
I got these two results after testing:
No form on ModalViewController , height 1,024.0
With a sheet in modalPresentationStyle , the height is 1024.0 , which is not true since the height should be less than 1024.0
Any idea what's wrong with that? I need to get the correct height from self.view.frame.size.height with the form sheet, because I need to write the formula somewhere in the code. I do not need to resize the sheet.
source share