Closed shahnawazali closed 6 years ago
Please let me know is this a right approach. I have to put below line in both methods // show navigation bar [self.navigationController setNavigationBarHidden:NO animated:NO];
Then it is showing navigation bar in Checkout Scene again
@shahnawazali if your rootViewController is not a UINavigationController you should use the displayController property , it uses the controller specified to display it appropriately.
Regarding the nav bar issue , yes it is a known issue and we have added it to our list of bugs but for now before you call open() hide the navigation controller - [self.navigationController setNavigationBarHidden:YES animated:YES/NO
and in the delgate methods unhide it.
Thanks for your response and get resolved.
Xcode 10, iOS 12, Swift 4.2.
After upgrading to the latest Pod 1.0.24, I'm able to present the Razorpay scene But it is hiding my Navigation Bar.
I am using method razorpay.open(options, displayController: self). when I am passing displayController param as self and came back to my Checkout Scene then It's navigation bar is hidden that used to navigate to previous Scene.
When i am passing displayController param as nil, then it shows:
Attempt to present <UINavigationController: 0x7fa2d4059200> on <CNXRewards.KYDrawerController: 0x7fa2d3027c00> whose view is not in the window hierarchy!
while in older version pod means before Xcode 10, iOS 12, it was working with razorpay.open(options)
New release of pod 1.0.24 did not solve Issue.