[NSCFNumber _isNaturallyRTL]: unrecognized selector sent to instance 0x605ac10 - iphone

my app got crashed an showed that keyword. There is no error and warning. can some body help me??
this is stack that showed :
Call stack at first throw: (
0 CoreFoundation 0x012ccbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x014215c2 objc_exception_throw + 47
2 CoreFoundation 0x012ce6fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x0123e366 ___forwarding___ + 966
4 CoreFoundation 0x0123df22 _CF_forwarding_prep_0 + 50
5 UIKit 0x0042d35e -[UITextField setText:] + 53
6 MyApp 0x0006427a -[FilePropertiesViewController viewWillAppear:] + 442
7 UIKit 0x003c4d52 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 207
8 UIKit 0x003cfa2b -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 378
9 UIKit 0x003cfa5c -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 427
10 UIKit 0x003cfa5c -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 427
11 UIKit 0x003c6b36 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 370
12 UIKit 0x003c514f -[UIView(Hierarchy) addSubview:] + 57
13 UIKit 0x006ad8ae -[UIPopoverView presentFromRect:inView:contentSize:backgroundStyle:animated:] + 1920
14 UIKit 0x006a0a4c -[UIPopoverView presentFromRect:inView:animated:] + 236
15 UIKit 0x006d9b20 -[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:] + 1046
16 MyApp 0x0001f90f -[codeViewController arrangeTabWithTypeGesture:andNumtag:] + 4683
17 MyApp 0x0001e68f -[codeViewController setTap2:] + 99
18 UIKit 0x0061e9c7 -[UIGestureRecognizer _updateGestureWithEvent:] + 727
19 UIKit 0x0061a9d6 -[UIGestureRecognizer _delayedUpdateGesture] + 47
20 UIKit 0x00620fa5 _UIGestureRecognizerUpdateObserver + 584
21 UIKit 0x0062118a _UIGestureRecognizerUpdateGesturesFromSendEvent + 51
22 UIKit 0x003bc6b4 -[UIWindow _sendGesturesForEvent:] + 1292
23 UIKit 0x003b7f87 -[UIWindow sendEvent:] + 105
24 UIKit 0x0039b37a -[UIApplication sendEvent:] + 447
25 UIKit 0x003a0732 _UIApplicationHandleEvent + 7576
26 GraphicsServices 0x0191fa36 PurpleEventCallback + 1550
27 CoreFoundation 0x012ae064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
28 CoreFoundation 0x0120e6f7 __CFRunLoopDoSource1 + 215
29 CoreFoundation 0x0120b983 __CFRunLoopRun + 979
30 CoreFoundation 0x0120b240 CFRunLoopRunSpecific + 208
31 CoreFoundation 0x0120b161 CFRunLoopRunInMode + 97
32 GraphicsServices 0x0191e268 GSEventRunModal + 217
33 GraphicsServices 0x0191e32d GSEventRun + 115
34 UIKit 0x003a442e UIApplicationMain + 1160
35 MyApp 0x00002680 main + 102
36 MyApp 0x00002611 start + 53
37 ??? 0x00000001 0x0 + 1
)
update
this is the code :
-(void)viewWillAppear:(BOOL)animated{
DocSegmentedModel *docSegmentedModel = [docProperties objectAtIndex:index];
NSString *segmenid = docSegmentedModel.docSegmentId;
NSFileManager *filemgr = [NSFileManager defaultManager];
NSDictionary *attribs;
NSString *sizes;
NSString *localFilePath = docSegmentedModel.docSegmentLocalPath;
NSLog(#"segmen id : %#", segmenid);
//get file name
fileName.text = docSegmentedModel.docSegmentFileName;
//get file size
attribs = [filemgr attributesOfItemAtPath:localFilePath error:NULL];
sizes = [attribs objectForKey:#"NSFileSize"];
NSLog(#"local path : %#", localFilePath);
NSLog(#"filesize : %#", sizes);
fileSize.text = sizes;
[filemgr release];
[attribs release];
}
the code is crash when I set the fileSize.text = sizes;
this is the dealloc method :
- (void)dealloc {
[fileSize release];
[super dealloc];
}

_isNaturallyRTL is an undocumented method of NSString. I assume that fileSize is a UILabel and so you need to assign an NSString to its text property. However, the dictionary you got returned by the fileManager holds an NSNumber object for the NSFileSize key containing an unsigned long long value. So you assign an NSNumber object to an NSString property, which cannot work.
Try fileSize.text = [sizes stringVlue];.

Related

UISearchBar strange issue

I have this log error when I tap in a uisearchbar (ios 7)
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSBigMutableString replaceCharactersInRange:withString:]: nil argument'
*** First throw call stack:
(
0 CoreFoundation 0x02c905e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x02a138b6 objc_exception_throw + 44
2 CoreFoundation 0x02c903bb +[NSException raise:format:] + 139
3 Foundation 0x0243863e -[NSBigMutableString replaceCharactersInRange:withString:] + 117
4 Foundation 0x02438595 -[NSConcreteMutableAttributedString replaceCharactersInRange:withAttributedString:] + 384
5 UIFoundation 0x077b49f4 __71-[NSConcreteTextStorage replaceCharactersInRange:withAttributedString:]_block_invoke + 68
6 UIFoundation 0x077b492f -[NSConcreteTextStorage replaceCharactersInRange:withAttributedString:] + 121
7 Foundation 0x02462d46 -[NSMutableAttributedString setAttributedString:] + 90
8 UIKit 0x016794e2 __65-[UIFieldEditor setAttributedText:andSetCaretSelectionAfterText:]_block_invoke + 53
9 UIFoundation 0x077b2491 -[NSTextStorage coordinateEditing:] + 48
10 UIKit 0x01679375 -[UIFieldEditor setAttributedText:andSetCaretSelectionAfterText:] + 151
11 UIKit 0x0167969b -[UIFieldEditor setAttributedText:] + 48
12 UIKit 0x01c5e3f5 -[UITextField willAttachFieldEditor:] + 340
13 UIKit 0x016784d5 -[UIFieldEditor becomeFieldEditorForView:] + 927
14 UIKit 0x01c55643 -[UITextField _becomeFirstResponder] + 160
15 UIKit 0x0184441a -[UISearchBarTextField _becomeFirstResponder] + 98
16 UIKit 0x01c554a1 -[UITextField __resumeBecomeFirstResponder] + 53
17 UIKit 0x0184466e __45-[UISearchBarTextField _becomeFirstResponder]_block_invoke + 259
18 UIKit 0x01844563 -[UISearchBarTextField _becomeFirstResponder] + 427
19 UIKit 0x016d2585 -[UIResponder becomeFirstResponder] + 400
20 UIKit 0x015d5d0b -[UIView(Hierarchy) becomeFirstResponder] + 114
21 UIKit 0x01c550e3 -[UITextField becomeFirstResponder] + 51
22 UIKit 0x018415b0 -[UISearchBar(UISearchBarStatic) becomeFirstResponder] + 42
23 UIKit 0x0183f9ef -[UISearchBar tappedSearchBar:] + 57
24 UIKit 0x018f0f8c _UIGestureRecognizerSendActions + 230
25 UIKit 0x018efc00 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 383
26 UIKit 0x018f166d -[UIGestureRecognizer _delayedUpdateGesture] + 60
27 UIKit 0x018f4bcd ___UIGestureRecognizerUpdate_block_invoke + 57
28 UIKit 0x018f4b4e _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 317
29 UIKit 0x018eb248 _UIGestureRecognizerUpdate + 199
30 UIKit 0x015b7d4a -[UIWindow _sendGesturesForEvent:] + 1291
31 UIKit 0x015b8c6a -[UIWindow sendEvent:] + 1030
32 UIKit 0x0158ca36 -[UIApplication sendEvent:] + 242
33 UIKit 0x01576d9f _UIApplicationHandleEventQueue + 11421
34 CoreFoundation 0x02c198af __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
35 CoreFoundation 0x02c1923b __CFRunLoopDoSources0 + 235
36 CoreFoundation 0x02c3630e __CFRunLoopRun + 910
37 CoreFoundation 0x02c35b33 CFRunLoopRunSpecific + 467
38 CoreFoundation 0x02c3594b CFRunLoopRunInMode + 123
39 GraphicsServices 0x0302d9d7 GSEventRunModal + 192
40 GraphicsServices 0x0302d7fe GSEventRun + 104
41 UIKit 0x0157994b UIApplicationMain + 1225
42 Mobile4Job 0x00002b5d main + 141
43 libdyld.dylib 0x03451725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I never see something like that and I can't fix it.
From the stack trace a assume that you want to rebuild the text entered in the search bar, and you try to replace a string in a range with other string, and it seems that your other string is nil. Please check the the string that you are using, one of them is nil
I found the problem, I have an UITextfield implementation:
#implementation UITextField (clearCustomButton)
- (id)initWithFrame:(CGRect)frame{
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
- (void)awakeFromNib{
self.clearButtonMode = UITextFieldViewModeWhileEditing;
}
- (CGRect)clearButtonRectForBounds:(CGRect)bounds{
return CGRectMake(bounds.size.width - 20, (bounds.size.height - 14)/2, 14, 14);
}
#end
if I delete :
- (id)initWithFrame:(CGRect)frame{
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
it works. By the way, thanks to #danypata

ios core data cannot find NSManagedObjectModel for entity name 'Cartdetail' with this code

Hi i'm creating an app that needs to save data in my label content to my core data model which is named as cart.xcdatamodeld and my entity named as Cartdetail.When i press a save button in my app i'm getting following error...
- (void)viewDidLoad {
if (managedObjectContext == nil) {
managedObjectContext = [(AppDelegate *)[[UIApplication sharedApplication] delegate]managedObjectContext];
}
}
- (IBAction)SaveTest:(id)sender {
ViewController2 *second = (ViewController2 *)[NSEntityDescription insertNewObjectForEntityForName:#"Cartdetail" inManagedObjectContext:managedObjectContext];
}
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Cartdetail''
*** Call stack at first throw:
(
0 CoreFoundation 0x010265a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01444313 objc_exception_throw + 44
2 CoreData 0x00036ebb +[NSEntityDescription entityForName:inManagedObjectContext:] + 187
3 CoreData 0x0006e9eb +[NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext:] + 59
4 tablevc 0x00009c97 -[Description alertView:clickedButtonAtIndex:] + 519
5 UIKit 0x00621c5f -[UIAlertView(Private) _buttonClicked:] + 296
6 UIKit 0x002784fd -[UIApplication sendAction:to:from:forEvent:] + 119
7 UIKit 0x00308799 -[UIControl sendAction:to:forEvent:] + 67
8 UIKit 0x0030ac2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
9 UIKit 0x003097d8 -[UIControl touchesEnded:withEvent:] + 458
10 UIKit 0x0029cded -[UIWindow _sendTouchesForEvent:] + 567
11 UIKit 0x0027dc37 -[UIApplication sendEvent:] + 447
12 UIKit 0x00282f2e _UIApplicationHandleEvent + 7576
13 GraphicsServices 0x01c34992 PurpleEventCallback + 1550
14 CoreFoundation 0x01007944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
15 CoreFoundation 0x00f67cf7 __CFRunLoopDoSource1 + 215
16 CoreFoundation 0x00f64f83 __CFRunLoopRun + 979
17 CoreFoundation 0x00f64840 CFRunLoopRunSpecific + 208
18 CoreFoundation 0x00f64761 CFRunLoopRunInMode + 97
19 GraphicsServices 0x01c331c4 GSEventRunModal + 217
20 GraphicsServices 0x01c33289 GSEventRun + 115
21 UIKit 0x00286c93 UIApplicationMain + 1160
22 tablevc 0x00001d4a main + 170
23 tablevc 0x00001c95 start + 53
)
terminate called throwing an exception
I'm new to iOS..Please help me..Thanks..
You probably haven't set up your managed object context in AppDelegate!
Take a look at the AppDelegate implementation of the iPhoneCoreDataRecipes example provided by apple:
iPhoneCoreDataRecipes example

Why deleteRecording crashed (AVAudioRecorder, iOS)?

[recorder deleteRecording]; works well 30 times, but around 31 it crashes.
0 libobjc.A.dylib 0x3266fc98 objc_msgSend + 16
1 Foundation 0x328c203c -[NSError dealloc] + 36
2 CoreFoundation 0x30d2dc3c -[NSObject(NSObject) release] + 24
3 Foundation 0x328e687c -[NSFilesystemItemRemoveOperation dealloc] + 36
4 Foundation 0x328bc7b2 -[NSOperation release] + 38
5 CoreFoundation 0x30d2e19a CFRelease + 62
6 CoreFoundation 0x30d30eb4 _CFAutoreleasePoolPop + 140
7 Foundation 0x328abbae NSPopAutoreleasePool + 2
8 Foundation 0x3293a908 __NSThreadPerformPerform + 620
9 CoreFoundation 0x30da0a72 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
10 CoreFoundation 0x30da2758 __CFRunLoopDoSources0 + 376
11 CoreFoundation 0x30da34e4 __CFRunLoopRun + 224
12 CoreFoundation 0x30d33ebc CFRunLoopRunSpecific + 224
13 CoreFoundation 0x30d33dc4 CFRunLoopRunInMode + 52
14 GraphicsServices 0x31896418 GSEventRunModal + 108
15 GraphicsServices 0x318964c4 GSEventRun + 56
16 UIKit 0x355b9d62 -[UIApplication _run] + 398
17 UIKit 0x355b7800 UIApplicationMain + 664
18 AppName 0x000020f6 main (main.m:16)
19 AppName 0x00002050 start + 44
I found that this happens when deleteRecording is trying to delete a non existent file. So check if file exists before you call it:
if ([[NSFileManager defaultManager] fileExistsAtPath:self.recorder.url.path]) {
if (![self.recorder deleteRecording])
NSLog(#"Failed to delete %#", self.recorder.url);
}
It must be a bug in AVAudioRecorder.

crash the second time I load a cell

This is how I load the cell:
zimmerCell = (ZimmerCell*)[tableView dequeueReusableCellWithIdentifier:#"ZimmerCell"];
if (zimmerCell == nil) {
ZimmerCell* loadedCell;
loadedCell = [[[NSBundle mainBundle] loadNibNamed:#"ZimmerCell" owner:self options:nil] objectAtIndex:0];
zimmerCell = [loadedCell retain];
[zimmerCell prepare];
}
return zimmerCell;
It works the first time I open the table.
When I exit the view controller and enter it again, it crashes with the following:
* Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 0;
nan 7.27683e-38]'
* Call stack at first throw: ( 0 CoreFoundation 0x01a44be9 exceptionPreprocess + 185 1 libobjc.A.dylib
0x01b995c2 objc_exception_throw + 47 2 CoreFoundation
0x019fd628 +[NSException raise:format:arguments:] + 136 3
CoreFoundation 0x019fd59a +[NSException
raise:format:] + 58 4 QuartzCore
0x008b63ee _ZL16CALayerSetBoundsP7CALayerRKN2CA4RectEb + 227 5
QuartzCore 0x008b62b6 -[CALayer setBounds:] +
122 6 UIKit 0x0121eac0 -[UIView
_createLayerWithFrame:] + 401 7 UIKit 0x0121a13b UIViewCommonInitWithFrame + 421 8 UIKit
0x0121b063 -[UIView initWithFrame:] + 113 9 UIKit
0x013ae909 -[UITableViewCell initWithCoder:] + 1218 10 PrivatQuadrat
0x00021e87 -[ZimmerCell initWithCoder:] + 62 11 UIKit
0x013e0265 -[UIClassSwapper initWithCoder:] + 237 12 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 13 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 14 UIKit
0x013dff43 -[UIRuntimeConnection initWithCoder:] + 212 15 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 16 UIKit
0x014c62dc UINibDecoderDecodeObjectForValue + 792 17 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 18 UIKit
0x013df200 -[UINib instantiateWithOwner:options:] + 804 19 UIKit
0x013e1081 -[NSBundle(UINSBundleAdditions)
loadNibNamed:owner:options:] + 168 20 PrivatQuadrat
0x00021401 -[ErweitertViewController tableView:cellForRowAtIndexPath:]
+ 202 21 UIKit 0x0125d7fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634 22 UIKit 0x0125377f -[UITableView(UITableViewInternal)
_createPreparedCellForGlobalRow:] + 75 23 UIKit 0x01268450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:]
+ 1561 24 UIKit 0x01260538 -[UITableView layoutSubviews] + 242 25 QuartzCore 0x008bc451 -[CALayer layoutSublayers] + 181 26 QuartzCore
0x008bc17c CALayerLayoutIfNeeded + 220 27 QuartzCore
0x008b537c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
28 QuartzCore 0x008b50d0
_ZN2CA11Transaction6commitEv + 292 29 QuartzCore 0x008e57d5
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 30 CoreFoundation 0x01a25fbb
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 27 31 CoreFoundation 0x019bb0e7 __CFRunLoopDoObservers
+ 295 32 CoreFoundation 0x01983bd7 __CFRunLoopRun + 1575 33 CoreFoundation 0x01983240 CFRunLoopRunSpecific + 208 34 CoreFoundation
0x01983161 CFRunLoopRunInMode + 97 35 GraphicsServices
0x02487268 GSEventRunModal + 217 36 GraphicsServices
0x0248732d GSEventRun + 115 37 UIKit
0x011f842e UIApplicationMain + 1160 38 PrivatQuadrat
0x00002184 main + 102 39 PrivatQuadrat
0x00002115 start + 53
Any ideas?

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.