Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

skunkio

macrumors newbie
Original poster
Apr 25, 2010
28
0
Hi All,
i have a simple tab application made with a tabController (2 tabs) and when i touch the second i receive this error:

Code:
[Session started at 2010-05-01 19:24:08 +0200.]
2010-05-01 19:24:11.907 iParty[3927:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x3910350> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.'
2010-05-01 19:24:11.909 iParty[3927:207] Stack: (
    29287515,
    2498610441,
    29446593,
    219752,
    218293,
    4555892,
    29190447,
    4550443,
    4558711,
    3244299,
    3237863,
    3237581,
    3287966,
    3283081,
    3290606,
    3289948,
    2716677,
    4579383,
    2716677,
    3124046,
    3132783,
    3123973,
    2716677,
    3124046,
    3132783,
    3127995,
    2821599,
    2729928,
    2756705,
    37383513,
    29072256,
    29068360,
    37377557,
    37377754,
    2760623,
    9524,
    9378
)

Searching on internet looks like IB dosn't find a definition in my class or the same variable called name in my class has a different type from the object i linked.
In IB i have a UITextField and my header class has the line below

Code:
@interface EventViewController : UIViewController {
	IBOutlet UITextField *name;

In IB i can create the link with my Outlet and the text field but when the xib has to be visualized i get this error.
If i comment the Outlet row and delete the link in IB che xib view has properly showed.
I don't understand what is wrong in my name definition.

Ciao,
stè
 
Where do you use name in your code, other than in the declaration you posted there.
 
Where do you use name in your code, other than in the declaration you posted there.

Solved, i forgot to set the class identity for the event view controller shows my xib file linked to the tab bar controller.

senzatitolow.jpg


Ciao,
stè
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.