ios - How do I remove the status bar from a PKPaymentAuthorizationViewController? -


i developing app include apple pay. when present pkpaymentauthorizationviewcontroller shows status bar on top of screen, keep hidden since not appear anywhere else in app.

i tried overriding view controller's behavior through subclassing:

@interface mypaymentauthorizationviewcontroller : pkpaymentauthorizationviewcontroller  @end  @implementation mypaymentauthorizationviewcontroller  - (bool)prefersstatusbarhidden {     return yes; }  @end 

though results in console message saying "pkpaymentauthorizationviewcontroller not support subclassing." , app crashing. possible present view controller without status bar appearing?