corresponded to iOS7 or later

Xcode suggested that is better to use UIViewController than contentSizeForViewInPopover.