Error when testing application on iPhone, but no error in simulator - iphone

I get the below error when I test my application on my iPhone, yet the error doesnt occur in the Simulator. Its when I load up my rootViewController which is a UITableView. I am relatively new to iOS programming, and I was just wondering if anybody could shed any light on it!
Regards,
Michael.
Use this code to go to my RootView.
- (IBAction)goToRootView {
RootViewController *rootViewController = [[RootViewController alloc] initWithStyle:UITableViewStyleGrouped];
[self.navigationController pushViewController:rootViewController animated:YES];
[rootViewController release];
}
2011-09-12 14:39:55.951 LeagueProject[773:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 0 beyond bounds for empty array'
*** Call stack at first throw:
(
0 CoreFoundation 0x3684b64f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x33aa4c5d objc_exception_throw + 24
2 CoreFoundation 0x367b6069 -[__NSArrayM objectAtIndex:] + 184
3 LeagueProject 0x0000302f -[RootViewController tableView:numberOfRowsInSection:] + 58
4 UIKit 0x356827c7 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 1338
5 UIKit 0x356836bb -[UITableViewRowData rectForFooterInSection:] + 66
6 UIKit 0x356835f5 -[UITableViewRowData heightForTable] + 40
7 UIKit 0x35683453 -[UITableView(_UITableViewPrivate) _updateContentSize] + 206
8 UIKit 0x3567ebc9 -[UITableView _rectChangedWithNewSize:oldSize:] + 384
9 UIKit 0x3567d833 -[UITableView setFrame:] + 158
10 UIKit 0x35684e0f -[UIView(Geometry) resizeWithOldSuperviewSize:] + 274
11 UIKit 0x356510bd -[UIView(Geometry) resizeSubviewsWithOldSize:] + 120
12 UIKit 0x356364e9 -[UIView(Geometry) setFrame:] + 336
13 UIKit 0x35688193 -[UIViewControllerWrapperView setFrame:] + 62
14 UIKit 0x35676079 -[UINavigationController _startTransition:fromViewController:toViewController:] + 960
15 UIKit 0x35675c43 -[UINavigationController _startDeferredTransitionIfNeeded] + 182
16 UIKit 0x35667d5d -[UINavigationController pushViewController:transition:forceImmediate:] + 640
17 UIKit 0x35667ad3 -[UINavigationController pushViewController:animated:] + 34
18 LeagueProject 0x0000917d -[splashView goToRootView] + 116
19 CoreFoundation 0x367bb571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
20 UIKit 0x3564dec9 -[UIApplication sendAction:to:from:forEvent:] + 84
21 UIKit 0x3564de69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
22 UIKit 0x3564de3b -[UIControl sendAction:to:forEvent:] + 38
23 UIKit 0x3564db8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
24 UIKit 0x3564e423 -[UIControl touchesEnded:withEvent:] + 342
25 UIKit 0x3564cbf5 -[UIWindow _sendTouchesForEvent:] + 368
26 UIKit 0x3564c56f -[UIWindow sendEvent:] + 262
27 UIKit 0x35635313 -[UIApplication sendEvent:] + 298
28 UIKit 0x35634c53 _UIApplicationHandleEvent + 5090
29 GraphicsServices 0x35f6fe77 PurpleEventCallback + 666
30 CoreFoundation 0x36822a97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
31 CoreFoundation 0x3682483f __CFRunLoopDoSource1 + 166
32 CoreFoundation 0x3682560d __CFRunLoopRun + 520
33 CoreFoundation 0x367b5ec3 CFRunLoopRunSpecific + 230
34 CoreFoundation 0x367b5dcb CFRunLoopRunInMode + 58
35 GraphicsServices 0x35f6f41f GSEventRunModal + 114
36 GraphicsServices 0x35f6f4cb GSEventRun + 62
37 UIKit 0x3565fd69 -[UIApplication _run] + 404
38 UIKit 0x3565d807 UIApplicationMain + 670
39 LeagueProject 0x000025a7 main + 82
40 LeagueProject 0x00002550 start + 40
)
terminate called after throwing an instance of 'NSException'

Your error is an index 0 beyond bounds for empty array error. Put breakpoints on the lines where you access arrays. When you find out which array is causing the problem, either the solution will be trivial, or you can add a bit more to your question and ask for further help.

It looks like the problem is in your implementation of [RootViewController tableView:numberOfRowsInSection:]. You are trying to access a member of a NSMutableArray that is empty - hence the error 'index 0 beyond bounds for empty array'.

Related

reading crash logs itunes after app update

I'v released an update to my app in AppStore, it got accepted pretty quick. Yet, it crashes right after an update. If installed on clean device it works, yet crashes if older version was present... I guess I messed up something and I'm trying to figure out what. I get crash reports from itunes connect, yet they do not tell me quite much. In other crash logs which I'v seen on stackoverflow questions there is Class name, method name and line of crash. While all my crash reports contain only bytes which give me zero information where and what is wrong.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3231b3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3a01695e objc_exception_throw + 26
2 CoreFoundation 0x32266ef4 -[__NSArrayM objectAtIndex:] + 160
3 kodinisRaktas 0x000b939a 0x0009f000 + 107418
4 kodinisRaktas 0x000b9282 0x0009f000 + 107138
5 kodinisRaktas 0x000a2434 0x0009f000 + 13364
6 UIKit 0x34149574 -[UIViewController loadViewIfRequired] + 360
7 UIKit 0x3419e1f2 -[UIViewController contentScrollView] + 22
8 UIKit 0x3419e138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
9 UIKit 0x3419e01c -[UINavigationController _layoutViewController:] + 28
10 UIKit 0x3419df48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
11 UIKit 0x3419d694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
12 UIKit 0x3419d57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
13 UIKit 0x3416e55c -[UILayoutContainerView layoutSubviews] + 176
14 UIKit 0x3412d8c2 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
15 QuartzCore 0x33ed950e -[CALayer layoutSublayers] + 210
16 QuartzCore 0x33ed90b0 CA::Layer::layout_if_needed(CA::Transaction*) + 456
17 QuartzCore 0x33f07eca -[CALayer layoutIfNeeded] + 138
18 UIKit 0x341d70dc -[UIViewController window:setupWithInterfaceOrientation:] + 204
19 UIKit 0x341d62c6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3598
20 UIKit 0x341d54aa -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
21 UIKit 0x341d5434 -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
22 UIKit 0x3430acb4 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
23 UIKit 0x3419367e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
24 UIKit 0x341933c2 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 690
25 UIKit 0x34192d2a -[UIViewController _tryBecomeRootViewControllerInWindow:] + 150
26 UIKit 0x34189e86 -[UIWindow addRootViewControllerViewIfPossible] + 366
27 UIKit 0x341d4ef2 -[UIWindow setRootViewController:] + 658
28 kodinisRaktas 0x000a1bd4 0x0009f000 + 11220
29 kodinisRaktas 0x000a18f6 0x0009f000 + 10486
30 UIKit 0x3418aa9c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
31 UIKit 0x3418a620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
32 UIKit 0x3418282e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
33 UIKit 0x3412ad1a -[UIApplication handleEvent:withNewEvent:] + 1006
34 UIKit 0x3412a7a8 -[UIApplication sendEvent:] + 68
35 UIKit 0x3412a1ea _UIApplicationHandleEvent + 6194
36 GraphicsServices 0x35e425f2 _PurpleEventCallback + 586
37 GraphicsServices 0x35e42222 PurpleEventCallback + 30
38 CoreFoundation 0x322f03e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
39 CoreFoundation 0x322f0386 __CFRunLoopDoSource1 + 134
40 CoreFoundation 0x322ef20a __CFRunLoopRun + 1378
41 CoreFoundation 0x32262238 CFRunLoopRunSpecific + 352
42 CoreFoundation 0x322620c4 CFRunLoopRunInMode + 100
43 UIKit 0x34181468 -[UIApplication _run] + 664
44 UIKit 0x3417e2b4 UIApplicationMain + 1116
45 kodinisRaktas 0x000a0d96 0x0009f000 + 7574
46 kodinisRaktas 0x000a0d4c 0x0009f000 + 7500
I can't reproduce the crash on my own device, so this is all I got to determine the crash source. Any ideas ?
You should symbolicate the crash log by opening it in Xcode and clicking Re-symbolicate. If this doesn't work you can do something like this How to Manually Symbolicate iOS Crash to View Crash Logs

NSUnknownKeyException Causing Crash on Button Click [duplicate]

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
So I'm not sure what is going on. I haven't really changed much. Nothing having to do with this class anyways. It was working fine just a bit before and now I'm getting this crash.
-(IBAction)mphButton:(id)sender{
if(self.mphVC == nil){
MphViewController *mph = [[MphViewController alloc] initWithNibName:#"MphView" bundle:[NSBundle mainBundle]];
self.mphVC = mph;
[mph release];
}
[self.navigationController pushViewController:self.mphVC animated:YES];
}
The thread is stopping saying "Thread 1: Program received signal "SIGABRT" on the [self.navigationController pushViewController:self.mphVC animated:YES];
This is what the message:
2011-09-29 10:59:03.557 SpeedClock[2973:b303] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MphViewController 0x4b42ad0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key count.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc25a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f16313 objc_exception_throw + 44
2 CoreFoundation 0x00dc24e1 -[NSException raise] + 17
3 Foundation 0x00794677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x007945e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0021030c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00d388cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x0020ed23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00210ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x000c6628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x000c4134 -[UIViewController loadView] + 120
11 UIKit 0x000c400e -[UIViewController view] + 56
12 UIKit 0x000c2482 -[UIViewController contentScrollView] + 42
13 UIKit 0x000d2f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
14 UIKit 0x000d1555 -[UINavigationController _layoutViewController:] + 43
15 UIKit 0x000d2870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
16 UIKit 0x000cd32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
17 UIKit 0x000d4562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932
18 UIKit 0x000cd1c4 -[UINavigationController pushViewController:animated:] + 62
19 SpeedClock 0x00002621 -[RootViewController mphButton:] + 353
20 UIKit 0x000144fd -[UIApplication sendAction:to:from:forEvent:] + 119
21 UIKit 0x000a4799 -[UIControl sendAction:to:forEvent:] + 67
22 UIKit 0x000a6c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
23 UIKit 0x000a57d8 -[UIControl touchesEnded:withEvent:] + 458
24 UIKit 0x00038ded -[UIWindow _sendTouchesForEvent:] + 567
25 UIKit 0x00019c37 -[UIApplication sendEvent:] + 447
26 UIKit 0x0001ef2e _UIApplicationHandleEvent + 7576
27 GraphicsServices 0x00ffb992 PurpleEventCallback + 1550
28 CoreFoundation 0x00da3944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
29 CoreFoundation 0x00d03cf7 __CFRunLoopDoSource1 + 215
30 CoreFoundation 0x00d00f83 __CFRunLoopRun + 979
31 CoreFoundation 0x00d00840 CFRunLoopRunSpecific + 208
32 CoreFoundation 0x00d00761 CFRunLoopRunInMode + 97
33 GraphicsServices 0x00ffa1c4 GSEventRunModal + 217
34 GraphicsServices 0x00ffa289 GSEventRun + 115
35 UIKit 0x00022c93 UIApplicationMain + 1160
36 SpeedClock 0x00001f59 main + 121
37 SpeedClock 0x00001ed5 start + 53
38 ??? 0x00000001 0x0 + 1
)
terminate called throwing an exceptionCurrent language: auto; currently objective-c
(gdb)
I can read these pretty well on Logcat on android. Just not use to reading this one. I saw another post saying that their class might not have been connected to their view. Mine is. It was working just fine prior to me putting in some stuff (which I recommented out and it still isnt working) on the MPHViewController.m
Any and all help is appreciated... Thanks :)
You most likely have something in your "MphView" XIB file called "count" that you no longer have in MphViewController. Maybe a delegate set for an object that's no longer there, or an action, or something like that. Check all your connections in Interface Builder and remove any broken ones.

Can't seem to get rid of key value coding-compliant error

This is the error i'm getting when i try and show a view controller modally inside my app:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<KVPasscodeViewController 0x8b815a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key instructionLabel.'
*** Call stack at first throw:
(
0 CoreFoundation 0x011185a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0126c313 objc_exception_throw + 44
2 CoreFoundation 0x011184e1 -[NSException raise] + 17
3 Foundation 0x00aea677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x00aea5e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0056630c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x0108e8cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x00564d23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00566ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x0041c628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x0041a134 -[UIViewController loadView] + 120
11 UIKit 0x0041a00e -[UIViewController view] + 56
12 UIKit 0x00418482 -[UIViewController contentScrollView] + 42
13 UIKit 0x00428f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
14 UIKit 0x00427555 -[UINavigationController _layoutViewController:] + 43
15 UIKit 0x00428870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
16 UIKit 0x0042332a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
17 UIKit 0x0053e2e9 -[UILayoutContainerView layoutSubviews] + 226
18 QuartzCore 0x002a6a5a -[CALayer layoutSublayers] + 181
19 QuartzCore 0x002a8ddc CALayerLayoutIfNeeded + 220
20 QuartzCore 0x002a8ed0 -[CALayer layoutIfNeeded] + 111
21 UIKit 0x0041b58a -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 587
22 UIKit 0x0039255f -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 4347
23 UIKit 0x00619619 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1381
24 UIKit 0x0041e65d -[UIViewController presentModalViewController:withTransition:] + 3478
25 DearMe 0x00011ca1 -[NotificationViewController addPasscode] + 273
26 UIKit 0x0036a4fd -[UIApplication sendAction:to:from:forEvent:] + 119
27 UIKit 0x003fa799 -[UIControl sendAction:to:forEvent:] + 67
28 UIKit 0x003fcc2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
29 UIKit 0x003fb7d8 -[UIControl touchesEnded:withEvent:] + 458
30 UIKit 0x0038eded -[UIWindow _sendTouchesForEvent:] + 567
31 UIKit 0x0036fc37 -[UIApplication sendEvent:] + 447
32 UIKit 0x00374f2e _UIApplicationHandleEvent + 7576
33 GraphicsServices 0x015f2992 PurpleEventCallback + 1550
34 CoreFoundation 0x010f9944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
35 CoreFoundation 0x01059cf7 __CFRunLoopDoSource1 + 215
36 CoreFoundation 0x01056f83 __CFRunLoopRun + 979
37 CoreFoundation 0x01056840 CFRunLoopRunSpecific + 208
38 CoreFoundation 0x01056761 CFRunLoopRunInMode + 97
39 GraphicsServices 0x015f11c4 GSEventRunModal + 217
40 GraphicsServices 0x015f1289 GSEventRun + 115
41 UIKit 0x00378c93 UIApplicationMain + 1160
42 DearMe 0x000029df main + 127
43 DearMe 0x00002955 start + 53
44 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Any ideas about why this might be caused?
EDIT: The code which gives the error:
KVPasscodeViewController *passcodeController = [[KVPasscodeViewController alloc] init];
passcodeController.delegate = self;
UINavigationController *passcodeNavigationController = [[UINavigationController alloc] initWithRootViewController:passcodeController];
[self.navigationController presentModalViewController:passcodeNavigationController animated:YES];
[passcodeNavigationController release];
[passcodeController release];
This is caused because you have an outlet pointing at 'instructionLabel' in the XIB for that view controller.
You have an .xib file that is most likely pointing to a nonexistent label. This typically happens if you add a UILabel in Interface Builder, attach it to your code where instructionLabel exists, then later remove instructionLabel from the code, but forget to update the .xib.

NSLocalizedString app crashed during run

i am creating an app which contains lots of label and text value etc... on registration page
without localisation my app working perfect but after doing localization i got error
-[UILabel charValue]: unrecognized selector sent to instance 0x765b980
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UILabel charValue]: unrecognized selector sent to instance 0x765b980'
* Call stack at first throw:
(
0 CoreFoundation 0x02aa7b99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x02bf740e objc_exception_throw + 47
2 CoreFoundation 0x02aa96ab -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x02a192b6 ___forwarding___ + 966
4 CoreFoundation 0x02a18e72 _CF_forwarding_prep_0 + 50
5 Foundation 0x001ebc2c _NSSetCharValueForKeyInIvar + 68
6 Foundation 0x00157152 _NSSetUsingKeyValueSetter + 230
7 Foundation 0x00157061 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
8 UIKit 0x005d570a -[UIRuntimeOutletConnection connect] + 112
9 CoreFoundation 0x02a1dded -[NSArray makeObjectsPerformSelector:] + 461
10 UIKit 0x005d4121 -[UINib instantiateWithOwner:options:] + 1041
11 UIKit 0x005d5eb5 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
12 UIKit 0x0048b95f -[UIViewController _loadViewFromNibNamed:bundle:] + 70
13 UIKit 0x00489675 -[UIViewController loadView] + 120
14 UIKit 0x0048954f -[UIViewController view] + 56
15 UIKit 0x004879f4 -[UIViewController contentScrollView] + 42
16 UIKit 0x004977e2 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
17 UIKit 0x00495ea3 -[UINavigationController _layoutViewController:] + 43
18 UIKit 0x0049712d -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
19 UIKit 0x00491ccd -[UINavigationController _startDeferredTransitionIfNeeded] + 266
20 UIKit 0x00498d8b -[UINavigationController pushViewController:transition:forceImmediate:] + 876
21 UIKit 0x00491b67 -[UINavigationController pushViewController:animated:] + 62
22 Buzzador 0x000039b8 -[BuzzadorViewController newuserBtnPressed] + 146
23 UIKit 0x003df7f8 -[UIApplication sendAction:to:from:forEvent:] + 119
24 UIKit 0x0046ade0 -[UIControl sendAction:to:forEvent:] + 67
25 UIKit 0x0046d262 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
26 UIKit 0x0046c053 -[UIControl touchesBegan:withEvent:] + 277
27 UIKit 0x00403324 -[UIWindow _sendTouchesForEvent:] + 395
28 UIKit 0x003e4cb4 -[UIApplication sendEvent:] + 447
29 UIKit 0x003e99bf _UIApplicationHandleEvent + 7672
30 GraphicsServices 0x030d0822 PurpleEventCallback + 1550
31 CoreFoundation 0x02a88ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
32 CoreFoundation 0x029e9807 __CFRunLoopDoSource1 + 215
33 CoreFoundation 0x029e6a93 __CFRunLoopRun + 979
34 CoreFoundation 0x029e6350 CFRunLoopRunSpecific + 208
35 CoreFoundation 0x029e6271 CFRunLoopRunInMode + 97
36 GraphicsServices 0x030cf00c GSEventRunModal + 217
37 GraphicsServices 0x030cf0d1 GSEventRun + 115
38 UIKit 0x003edaf2 UIApplicationMain + 1160
39 Buzzador 0x00002610 main + 102
40 Buzzador 0x000025a1 start + 53
)
terminate called after throwing an instance of 'NSException'
all other page work perfect with localization accept this registration.
please help me
Maybe you meant - [UILabel text] instead of - [UILabel charValue]?
i find the solution.. i removed all unused variables.. and it works fine...
thanx to all

iPad Console Error Message Help

Can anyone help me decipher what's causing my program to crash? I've got a 5 tab bar controller set up, when I load each tab bar, i'm loading a custom table cell with data from a plist file.
this is the error message output to console;
[Session started at 2011-04-28 12:53:05 +0100.]
2011-04-28 12:53:09.344 FiveTabView[62565:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "Drinks" nib but didn't get a UITableView.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00db3be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f085c2 objc_exception_throw + 47
2 CoreFoundation 0x00d6c628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d6c59a +[NSException raise:format:] + 58
4 UIKit 0x004c1324 -[UITableViewController loadView] + 275
5 UIKit 0x0036a5e3 -[UIViewController view] + 56
6 UIKit 0x0037d230 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 120
7 UIKit 0x0037bd86 -[UITabBarController transitionFromViewController:toViewController:] + 64
8 UIKit 0x0037db7e -[UITabBarController _setSelectedViewController:] + 263
9 UIKit 0x0037d9ed -[UITabBarController _tabBarItemClicked:] + 352
10 UIKit 0x002bca6e -[UIApplication sendAction:to:from:forEvent:] + 119
11 UIKit 0x004ba1f2 -[UITabBar _sendAction:withEvent:] + 422
12 UIKit 0x002bca6e -[UIApplication sendAction:to:from:forEvent:] + 119
13 UIKit 0x0034b1b5 -[UIControl sendAction:to:forEvent:] + 67
14 UIKit 0x0034d647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
15 UIKit 0x0034b16c -[UIControl sendActionsForControlEvents:] + 49
16 UIKit 0x002bca6e -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x0034b1b5 -[UIControl sendAction:to:forEvent:] + 67
18 UIKit 0x0034d647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
19 UIKit 0x0034c1f4 -[UIControl touchesEnded:withEvent:] + 458
20 UIKit 0x002e10d1 -[UIWindow _sendTouchesForEvent:] + 567
21 UIKit 0x002c237a -[UIApplication sendEvent:] + 447
22 UIKit 0x002c7732 _UIApplicationHandleEvent + 7576
23 GraphicsServices 0x016e9a36 PurpleEventCallback + 1550
24 CoreFoundation 0x00d95064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
25 CoreFoundation 0x00cf56f7 __CFRunLoopDoSource1 + 215
26 CoreFoundation 0x00cf2983 __CFRunLoopRun + 979
27 CoreFoundation 0x00cf2240 CFRunLoopRunSpecific + 208
28 CoreFoundation 0x00cf2161 CFRunLoopRunInMode + 97
29 GraphicsServices 0x016e8268 GSEventRunModal + 217
30 GraphicsServices 0x016e832d GSEventRun + 115
31 UIKit 0x002cb42e UIApplicationMain + 1160
32 FiveTabView 0x00002420 main + 102
33 FiveTabView 0x000023b1 start + 53
34 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Looks like you are calling setValue:forKey: on an object that has been uninitialised (and the memory pointer is pointing elsewhere) or you are actually calling it on the wrong object?