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

  • SEARCH
  • Home
  • 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 7621611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:14:20+00:00 2026-05-31T04:14:20+00:00

update I solved this problem by myself. I put it here for further reference.

  • 0

update

I solved this problem by myself. I put it here for further reference. I found that I wired rootViewController of window to tabBarController in MainWindow.xib, instead of add the following line in didFinishLaunchingWithOptions:

[self.window setRootViewController:self.tabBarController];

Everything is fine after removing the link in MainWindow.

I guess it may triggered the view of the first tab, which has an un-initialed array.

Anyway, I still dont no why it is ok under ios4.

Thanks.

enter image description here


update

thanks for comments and answers, it happens before getting into didFinishLaunchingWithOptions. however I still paste didFinishLaunchingWithOptions here to see if I miss anything.

ps: it works perfect on ios 4.x

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    return YES;
}

Hi I got a strange problem which happens before didFinishLaunchingWithOptions, so I have no idea how to handle it. Can anyone give any hint? Thanks you.

2012-03-10 18:03:12.642[95579:17003] Unresolved error (null), (null)
2012-03-10 18:03:12.644[95579:17003] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x1a07052 0x1fbbd0a 0x19f3db8 0x16c57 0x19d15 0x973e 0x8665 0xa1a64e 0xa19c1c 0xa4056d 0xa2ad47 0xa41441 0xa4145d 0xa4145d 0xa414f9 0x981d65 0x981dac 0xb7274e 0xb74010 0x95414a 0x954461 0x9537c0 0x962743 0x9631f8 0x956aa9 0x28f4fa9 0x19db1c5 0x1940022 0x193e90a 0x193ddb4 0x193dccb 0x9532a7 0x954a9b 0x2690 0x1eb5)
terminate called throwing an exceptionCurrent language:  auto; currently objective-c
  • 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-31T04:14:21+00:00Added an answer on May 31, 2026 at 4:14 am

    Check first if the array is empty:

    if ([array count] > 0) {
    /* do something with your array */
    }
    

    If you need to look inside the array, set a breakpoint and look inside while debugging.

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

Sidebar

Related Questions

Update II Problem Solved but Why? This has been the biggest headache ever. My
UPDATE: First problem solved, second one described at the bottom of this post. UPDATE2:
-------EDIT------- hi guys, seeing that you solved this problem for me, i thought it
UPDATE: I solved the problem myself and the answer is below. Carry on... I
UPDATE SOLVED - Thank's to @MusiGenesis persistence with this I solved the problem by
UPDATE: Solved. Thanks BusyMark! EDIT: This is revised based on the answer below from
[Update] Solved the Problem by generating a new web.config. Possible error was the second
THIS PROBLEM IS NOW SOLVED. THANK YOU TO EVERYONE WHO REPLIED. Hello, I am
UPDATE: I've solved this now - see my own comment. Amazing how often writing
Update: Solved, with code I got it working, see my answer below for the

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.