I understand this is an Objective-C request, but for those using Swift and stumbled upon this question, you can simply create the CGRect extension:
extension CGRect { func maxYinParentFrame() -> CGFloat { return self.origin.y + self.size.height } }
Then you can use it anywhere.
let mySize = myView.frame.maxYinParentFrame()
source share