Friday, December 2, 2022
HomeIOS Developmentios - WKWebView disappears when I attempt to transfer it into one...

ios – WKWebView disappears when I attempt to transfer it into one other UIView


I’ve a WKWebView. In some unspecified time in the future I create a brand new UIView and wish to transfer that WKWebView from the previous view into the newly created UIView.
However once I try this – the WKWebView will get disappeared.

UIView *myView = [[UIView alloc] initWithFrame:body];
[webView removeFromSuperview];
[myView addSubview:webView];

So the webView ought to seem in myView, proper?
However it will get disappeared one way or the other.
Why is that this taking place and the way can I forestall it?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments