Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6784397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:59:23+00:00 2026-05-26T16:59:23+00:00

I am working on an app targeted for > iOS 4. In this app

  • 0

I am working on an app targeted for > iOS 4. In this app I display a UIWebView as modalView (inside an UIViewController which is pushed from an UITableViewController living in an 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 with a UITableView. Once a specific row is tapped my browser view controller is pushed:

        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 is an UIWebView and some browser controls (address bar, back and refresh buttons). This all works as expected.

On to the problem:
If there are youtube videos embedded on a website and those are clicked the youtube player launches fullscreen. Once I close the youtube player (Done button) the player closes, apparently my modal view closes too and the app crashes after showing my root view controller for a second.

This is the console output:

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

My guess is that once the youtube player is launched my modal view controller is released and jumping back to it fails. I wasn’t successful in finding the place to add a retain or similar …

Anyone seen this happen and can give me a hint what to do?

Thanks,
Mark.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:59:25+00:00Added an answer on May 26, 2026 at 4:59 pm

    See this: Reg: modifying layer that is being finalized……. [CALayer frame]: message sent to deallocated instance 0xe43c520

    The error "modifying layer that is being finalized" occurs when you are trying to modify the properties of a CALayer when it is in the process of being deallocated. I’ve seen this happen when I’ve accidentally used an accessor to clear a property on a CALayer while within that layer’s -dealloc method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working at an app which would make a POST ajax request to a
I'm currently moving a (working) app from using EclipseLink to Hibernate JPA, mostly it's
I am trying to make an Android app which will pull uploaded videos from
I'm working on a Titanium app (currently targeted for iPhone deployment, but ultimately intended
I'm working on a little app to scrape css from a url. Demo it
I am confused, I have an iOS app targeted for Iphone The MainWindow.xib file
I'm currently migrating a working app from CakePHP 1.2 to 1.3. Most things seem
Today, I created a copy of a working app, which runs perfectly on Heroku,
Today, I created a copy of a working app, which runs perfectly on Heroku,
I have an app working with databases on both server side and iOS client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.