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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:43:20+00:00 2026-05-17T01:43:20+00:00

I am writing an iPhone application that contains a tab controller, each tab item

  • 0

I am writing an iPhone application that contains a tab controller, each tab item has a separated view controller and a xib file.

It work normal when I only display views without any outlet connections from nib to my class.
But when I try to connect items on the xib to my class variable. The application always crash.

The code is like:

@interface TabX : UIViewController {
 IBOutlet UILabel *label;
}

@property (nonatomic, retain) UILabel *label;

@end


@implementation PromotionNews

@synthesize label;

...

@end

The crash occurs when I make connection in IB to connect a Label object to my file owener’s label outlet. The file owner is set to class TabX type.

Part of the trace is :

2010-09-30 10:23:59.503 MyNearByInfoApp[2613:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x6d28530> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label.'
*** Call stack at first throw:
(
 0   CoreFoundation                      0x02664b99 __exceptionPreprocess + 185
 1   libobjc.A.dylib                     0x027b440e objc_exception_throw + 47
 2   CoreFoundation                      0x02664ad1 -[NSException raise] + 17
 3   Foundation                          0x000330f3 _NSSetUsingKeyValueSetter + 135
 4   Foundation                          0x00033061 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
 5   UIKit                               0x004b170a -[UIRuntimeOutletConnection connect] + 112
 6   CoreFoundation                      0x025dad0f -[NSArray makeObjectsPerformSelector:] + 239
 7   UIKit                               0x004b0121 -[UINib instantiateWithOwner:options:] + 1041
 8   UIKit                               0x004b1eb5 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168

Any idea what this crash happen?

  • 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-17T01:43:21+00:00Added an answer on May 17, 2026 at 1:43 am

    I just solved this error with another person JUST NOW. the problem is that you are referencing your views which do not match your code. and again its for the same reason. because you have a tab bar application im assuming you have the delegate as well and so on.
    what you do is click on the TAB BAR itself on the view and THEN name the class identity name as your class name that you use in xcode.

    So delete the file owners class identity and leave it as normal. It should be UIApplication i believe if you used the default tabBar application.

    Hope this helps
    Let me know if it does. Because it helped the other dude.
    Uts quite funny though how youre the second person that has the same problem. and its the first time im solving the same problem again one after the other. lol

    PK

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

Sidebar

Related Questions

I'm currently writing an iPhone application that uses a UITabBarController with more than 5
So I'm looking at writing an iPhone application that shows things on a map.
I am writing an iPhone application, and need to save the state of my
Hey folks - I'm writing a pretty simple iPhone application. The data comes from
I'm writing my first iPhone app, so I haven't gotten around to figuring out
I'm writing server-side programs in PHP for an iPhone app. And I have no
Writing a JSP page, what exactly does the <c:out> do? I've noticed that the
Writing some test scripts in IronPython, I want to verify whether a window is
Writing the code for the user authentication portion of a web site (including account
Writing something like this using the loki library , typedef Functor<void> BitButtonPushHandler; throws a

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.