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 3497956
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:26:07+00:00 2026-05-18T12:26:07+00:00

For the past few weeks I have been working on an app that uses

  • 0

For the past few weeks I have been working on an app that uses a SoundManager class that I found via the comments of this blog post:
http://www.gehacktes.net/2009/03/iphone-programming-part-6-multiple-sounds-with-openal/

The link to the SoundManager and tester app is provided in the comments by David Evans. I am not allowed to provide a second link so I’ll mention the name of ZIP file he links to:
SoundTester.zip

I was very happy with this code, until iOS 4.2 was released. After updating my iPad and Xcode correspondingly, my apps that use the SoundManager class only show the navigation bar with it’s title. The rest of the screen is white. It’s not iPad specific behavior. I have seen the same on an iPhone4 and an iPhone 3G that upgraded to iOS 4.2.

When running the apps in the simulator, I get the same results. The problem is that I get no error messages in the console window and no build and compile errors at all. Very frustrating and very hard to fix for an iPhone developer that started using the iPhone SDK only months ago.

Does anyone have a clue what could have gone broken and how to fix it? Any help is appreciated!

  • 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-18T12:26:08+00:00Added an answer on May 18, 2026 at 12:26 pm

    Somebody please shoot me…

    Just found the problem, with the help from a piece of code I had written down from the iPhone Developer’s Cookbook.

    The problem was not the SoundManager (which still works fine, fortunately!) but in the application:didFinishLaunchingWithOptions: method in the App Delegate class.

    Here is the code that causes the problem in iOS 4.2 but still works in iOS 3.2:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    
    // Create a Navigation Controller on the fly.
    // Use the View Controller as root view controller.
    viewController.title = @"ThreeSounds";
    
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:viewController];
    nav.navigationBar.barStyle = UIBarStyleBlack;
    
    // Add the view controller's view to the window and display.
    [window addSubview:nav.view];
    [nav release];
    
    [window makeKeyAndVisible];
    
    return YES;
    } 
    

    The solution: remove the line that says: [nav release].
    For some reason, releasing the navigation controller was not a problem in iOS 3.2.
    In iOS 4.2 is makes the screen go white.

    I found out that this method was the problem because it was the last method that was executed. That, in turn, I found out by adding this piece of code to every class in my project:

    -(BOOL) respondsToSelector:(SEL)aSelector {
     printf("SELECTOR: %s\n", [NSStringFromSelector(aSelector) UTF8String]);
     return [super respondsToSelector:aSelector];
    }
    

    This piece of code logs all the methods that get called.

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

Sidebar

Related Questions

I have been working on a scheduling website for the past few weeks. I
I have been learning Hibernate for the past few weeks, I have gotten most
for the past two weeks I've been working on coming up with a collision
I have a PHP site with a mySQL database that I'm working on. I'm
So I have been developing a small ASP.NET web app in C# for my
I've been working with Zend Framework (using Doctrine as the ORM) for quite a
The company I work for creates applications for the Blackberry platform. We've been working
I have a mySQL database that tracks our projects and drives our website's display
I am new to using Microsoft development tools but have been using Visual Studio
I've been looking at building a 'people who like x, also like y' type

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.