Youtube Player in UIWebView in ModalViewController

I am working on an application intended for> iOS 4. In this application, I show UIWebView as modalView (inside a UIViewController that pops out of the UITableViewController living in the UINavigationController;)):

SettingsViewController *settings = [[SettingsViewController alloc] initWithNibName:@"SettingsView" bundle:nil];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:settings];
[self.navigationController presentModalViewController:navController animated:YES];
[settings release];
[navController release];

This shows a modal view using a UITableView. After clicking a certain line, my browser browser controller will be pressed:

        WebBrowserViewController *vc = [[WebBrowserViewController alloc] initWithNibName:@"WebBrowserView" bundle:nil];
        [self.navigationController pushViewController:vc animated:YES];
        [vc goToUrl:@"http://www.example.com"];
        [vc release];

Inside the WebBrowserViewController there is a UIWebView and some browser controls (address, return and updated buttons). All this works as expected.

: - youtube, , youtube player . YouTube ( "" ), , , , .

:

2011-02-24 14:52:51.109 MyApp[498:307] modifying layer that is being finalized - 0x14eda0
2011-02-24 14:52:51.113 MyApp[498:307] modifying layer that is being finalized - 0x14b590
2011-02-24 14:52:51.117 MyApp[498:307] modifying layer that is being finalized - 0x14c630
2011-02-24 14:52:51.262 MyApp[498:307] modifying layer that is being finalized - 0x14eda0
2011-02-24 14:52:51.270 MyApp[498:307] *** -[CALayer sublayers]: message sent to deallocated instance 0x178fe0

, youtube , . , ...

- , ?

, .

+3
1

: Reg: , ....... [CALayer frame]: 0xe43c520

"modifying layer that is being finalized" , CALayer, . , , , CALayer, -dealloc.

+1

Source: https://habr.com/ru/post/1794450/


All Articles