Passing an unknown type (?) object to a function as a parameter in objective-c - objective-c

How do I pass an unknown type (?) object to a function and then set it to a local ones value in objective-c? The unknown object is an n-th item of a JSON value. I use the JSON framework.
[giveMeTheNthObj:[items objectAtIndex:indexPath.row]]
...
- (void)giveMeTheNthObj:(id)o {
Classname *local = o;
}
The above fails. I think because the local is a pointer that should point to a Classname type. What should be the type of the local variable?
The error log:
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Attaching to process 37438.
2011-09-30 16:39:21.649 Navig[37438:b303] -[UILabel copyWithZone:]: unrecognized
selector sent to instance 0x4b949a0
2011-09-30 16:39:21.652 Navig[37438:b303] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[UILabel copyWithZone:]: unrecognized selector
sent to instance 0x4b949a0'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dde5a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f32313 objc_exception_throw + 44
2 CoreFoundation 0x00de00bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00d4f966 ___forwarding___ + 966
4 CoreFoundation 0x00d4f522 _CF_forwarding_prep_0 + 50
5 CoreFoundation 0x00d3edca -[NSObject(NSObject) copy] + 42
6 UIKit 0x000de18b -[UIViewController setTitle:] 95
7 Foundation 0x007b05e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
8 UIKit 0x0022c30c -[UIRuntimeOutletConnection connect] + 112
9 CoreFoundation 0x00d548cf -[NSArray makeObjectsPerformSelector:] + 239
10 UIKit 0x0022ad23 -[UINib instantiateWithOwner:options:] + 1041
11 UIKit 0x0022cab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
12 UIKit 0x000e2628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
13 UIKit 0x000e0134 -[UIViewController loadView] + 120
14 UIKit 0x000e000e -[UIViewController view] + 56
15 UIKit 0x000de482 -[UIViewController contentScrollView] + 42
16 UIKit 0x000eef25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
17 UIKit 0x000ed555 -[UINavigationController _layoutViewController:] + 43
18 UIKit 0x000ee7aa -[UINavigationController _startTransition:fromViewController:toViewController:] + 326
19 UIKit 0x000e932a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
20 UIKit 0x000f0562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932
21 UIKit 0x089b9c36 [UINavigationControllerAccessibility(SafeCategory) pushViewController:transition:forceImmediate:] + 77
22 UIKit 0x000e91c4 -[UINavigationController pushViewController:animated:] + 62
23 Navig 0x00002dfd -[RootViewController tableView:didSelectRowAtIndexPath:] + 269
24 UIKit 0x000a7b68 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
25 UIKit 0x0009db05 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
26 Foundation 0x007b779e __NSFireDelayedPerform + 441
27 CoreFoundation 0x00dbf8c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
28 CoreFoundation 0x00dc0e74 __CFRunLoopDoTimer + 1220
29 CoreFoundation 0x00d1d2c9 __CFRunLoopRun + 1817
30 CoreFoundation 0x00d1c840 CFRunLoopRunSpecific + 208
31 CoreFoundation 0x00d1c761 CFRunLoopRunInMode + 97
32 GraphicsServices 0x010161c4 GSEventRunModal + 217
33 GraphicsServices 0x01016289 GSEventRun + 115
34 UIKit 0x0003ec93 UIApplicationMain + 1160
35 Navig 0x00002439 main + 121
36 Navig 0x000023b5 start + 53
)
terminate called throwing an exceptionsharedlibrary apply-load-rules all
Current language: auto; currently objective-c
(gdb)

When you say "The above fails."; how exactly does it fail? Exception raised at run-time, warning during compile, etc? Does this help:
- (void)giveMeTheNthObj:(id)o {
if ([o isKindOfClass:[Classname class]]) {
Classname *local = (Classname *)o;
}
}

You want NSString *local = NSStringFromClass([o class]);?

Related

PFLoginViewController and Facebook Login: couldn't login

I'm currently experiencing a problem with the PFLoginViewController and Facebook Login process. I set up the FB app from the developer page, I put the APP id e secret ID in the Parse App setting in the Authorization tab then I add a URL scheme and FacebookAppID e DisplayName as string in the Custom iOS Target. All the required Frameworks have been previously installed in the app. When I click the Facebook login button the error I get is the following:
014-09-26 00:52:31.865 Diary[17009:19a03] -[__NSArrayI rangeOfString:]: unrecognized selector sent to instance 0xa3545b0
2014-09-26 00:52:31.902 Diary[17009:19a03] CRASH: -[__NSArrayI rangeOfString:]: unrecognized selector sent to instance 0xa3545b0
2014-09-26 00:52:31.911 Diary[17009:19a03] Stack Trace: (
0 CoreFoundation 0x0260e02e __exceptionPreprocess + 206
1 libobjc.A.dylib 0x01f6fe7e objc_exception_throw + 44
2 CoreFoundation 0x026994bd -[NSObject(NSObject) doesNotRecognizeSelector:] + 253
3 CoreFoundation 0x025fdbbc ___forwarding___ + 588
4 CoreFoundation 0x025fd94e _CF_forwarding_prep_0 + 14
5 Diary 0x00094f9c -[PFFacebookAuthenticationProvider containsPublishPermission] + 202
6 Diary 0x00095203 -[PFFacebookAuthenticationProvider authenticateWithSuccess:failure:cancel:] + 497
7 Diary 0x00030e36 +[PFUser(Private) logInWithProvider:block:] + 249
8 Diary 0x0003246a +[PFUser(Private) logInWithAuthType:block:] + 129
9 Diary 0x00093bca +[PFFacebookUtils logInWithPermissions:block:] + 177
10 Diary 0x0005ef45 -[PFLogInViewController logInUsingFacebook] + 193
11 libobjc.A.dylib 0x01f83705 -[NSObject performSelector:withObject:withObject:] + 77
12 UIKit 0x00eb72c0 -[UIApplication sendAction:to:from:forEvent:] + 96
13 UIKit 0x00eb7258 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
14 UIKit 0x00f78021 -[UIControl sendAction:to:forEvent:] + 66
15 UIKit 0x00f7857f -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 578
16 UIKit 0x00f776e8 -[UIControl touchesEnded:withEvent:] + 546
17 UIKit 0x00ee6cef -[UIWindow _sendTouchesForEvent:] + 846
18 UIKit 0x00ee6f02 -[UIWindow sendEvent:] + 273
19 UIKit 0x00ec4d4a -[UIApplication sendEvent:] + 436
20 UIKit 0x00eb6698 _UIApplicationHandleEvent + 9874
21 GraphicsServices 0x021ecdf9 _PurpleEventCallback + 339
22 GraphicsServices 0x021ecad0 PurpleEventCallback + 46
23 CoreFoundation 0x02583bf5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
24 CoreFoundation 0x02583962 __CFRunLoopDoSource1 + 146
25 CoreFoundation 0x025b4bb6 __CFRunLoopRun + 2118
26 CoreFoundation 0x025b3f44 CFRunLoopRunSpecific + 276
27 CoreFoundation 0x025b3e1b CFRunLoopRunInMode + 123
28 GraphicsServices 0x021eb7e3 GSEventRunModal + 88
29 GraphicsServices 0x021eb668 GSEventRun + 104
30 UIKit 0x00eb3ffc UIApplicationMain + 1211
31 Diary 0x0000225d main + 141
32 Diary 0x00002185 start + 53
)
2014-09-26 00:52:31.912 Diary[17009:19a03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI rangeOfString:]: unrecognized selector sent to instance 0xa3545b0'
*** First throw call stack:
(0x260e012 0x1f6fe7e 0x26994bd 0x25fdbbc 0x25fd94e 0x94f9c 0x95203 0x30e36 0x3246a 0x93bca 0x5ef45 0x1f83705 0xeb72c0 0xeb7258 0xf78021 0xf7857f 0xf776e8 0xee6cef 0xee6f02 0xec4d4a 0xeb6698 0x21ecdf9 0x21ecad0 0x2583bf5 0x2583962 0x25b4bb6 0x25b3f44 0x25b3e1b 0x21eb7e3 0x21eb668 0xeb3ffc 0x225d 0x2185)
libc++abi.dylib: terminate called throwing an exception
Any suggestion?

This class is not key value coding-compliant for the key featured

I suspect some code is trying to use my FooterArchiveView similar to a NSDictionary so I tried using breakpoints to find the bottleneck but my breakpoints are sending me on a wild goose chase into system files like UINibDecoderDecodeObjectForValue. What should I do?
2012-03-08 08:35:55.417 JOM App[44161:207] Uncaught exception: [<FooterArchiveView 0x9b27770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key featured.
2012-03-08 08:35:55.420 JOM App[44161:207] Stack trace: (
0 CoreFoundation 0x0169c06e __exceptionPreprocess + 206
1 libobjc.A.dylib 0x01c50d0a objc_exception_throw + 44
2 CoreFoundation 0x0169bf11 -[NSException raise] + 17
3 Foundation 0x00f89032 -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x00efaf7b _NSSetUsingKeyValueSetter + 136
5 Foundation 0x00efaeeb -[NSObject(NSKeyValueCoding) setValue:forKey:] + 287
6 UIKit 0x00628268 -[UIView(CALayerDelegate) setValue:forKey:] + 168
7 Foundation 0x00f15d60 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 393
8 UIKit 0x0080891a -[UIRuntimeOutletConnection connect] + 106
9 CoreFoundation 0x0169de1a -[NSObject performSelector:] + 58
10 CoreFoundation 0x01607821 -[NSArray makeObjectsPerformSelector:] + 273
11 UIKit 0x0080746e -[UINib instantiateWithOwner:options:] + 1178
12 UIKit 0x00809010 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 157
13 JOM App 0x0000e9ca -[ContentView setContent:] + 1258
14 JOM App 0x0000c906 -[NavigationView devotionsTUI:] + 390
15 CoreFoundation 0x0169dec9 -[NSObject performSelector:withObject:withObject:] + 73
16 UIKit 0x005ec5c2 -[UIApplication sendAction:to:from:forEvent:] + 96
17 UIKit 0x005ec55a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
18 UIKit 0x00691b76 -[UIControl sendAction:to:forEvent:] + 66
19 UIKit 0x0069203f -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
20 UIKit 0x006912fe -[UIControl touchesEnded:withEvent:] + 549
21 UIKit 0x00611a30 -[UIWindow _sendTouchesForEvent:] + 513
22 UIKit 0x00611c56 -[UIWindow sendEvent:] + 273
23 UIKit 0x005f8384 -[UIApplication sendEvent:] + 464
24 UIKit 0x005ebaa9 _UIApplicationHandleEvent + 8196
25 GraphicsServices 0x02589fa9 PurpleEventCallback + 1274
26 CoreFoundation 0x016701c5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
27 CoreFoundation 0x015d5022 __CFRunLoopDoSource1 + 146
28 CoreFoundation 0x015d390a __CFRunLoopRun + 2218
29 CoreFoundation 0x015d2db4 CFRunLoopRunSpecific + 212
30 CoreFoundation 0x015d2ccb CFRunLoopRunInMode + 123
31 GraphicsServices 0x02588879 GSEventRunModal + 207
32 GraphicsServices 0x0258893e GSEventRun + 114
33 UIKit 0x005e9a9b UIApplicationMain + 1175
34 JOM App 0x000027d2 main + 178
35 JOM App 0x00002715 start + 53
36 ??? 0x00000001 0x0 + 1
)
"This class is not key value coding-compliant for the key featured." means that a class is trying to set a property on an object through key-value coding, only to find that it cannot. This most often occurs when you've defined an outlet, connected it in a nib, then removed the outlet from your code, leaving a dangling connection in the nib. When the nib is deserialised, it tries to connect up the outlet using key-value coding and you see the error above.

Error Log When Calling a row of table

Anyone knows Why this error?Occur when i select the row of a table,navigate to a view,then if i go back and select it again it just crash
-[CALayerArray name]: unrecognized selector sent to instance 0x5a4f8a0
2011-08-24 01:01:10.983 Prototipo[8277:207]
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[CALayerArray name]: unrecognized selector sent to instance 0x5a4f8a0'
*** Call stack at first throw:
(
0 CoreFoundation 0x010715a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x011c5313 objc_exception_throw + 44
2 CoreFoundation 0x010730bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00fe2966 ___forwarding___ + 966
4 CoreFoundation 0x00fe2522 _CF_forwarding_prep_0 + 50
5 Prototipo 0x00003989 -[BaladaDetailsController setAllElements] + 129
6 Prototipo 0x00003cba -[BaladaDetailsController viewDidLoad] + 36
7 UIKit 0x00371089 -[UIViewController view] + 179
8 UIKit 0x0036f482 -[UIViewController contentScrollView] + 42
9 UIKit 0x0037ff25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
10 UIKit 0x0037e555 -[UINavigationController _layoutViewController:] + 43
11 UIKit 0x0037f7aa -[UINavigationController _startTransition:fromViewController:toViewController:] + 326
12 UIKit 0x0037a32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
13 UIKit 0x00381562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932
14 UIKit 0x0037a1c4 -[UINavigationController pushViewController:animated:] + 62
15 Prototipo 0x00004bea -[TableViewBaladasController tableView:didSelectRowAtIndexPath:] + 280
16 UIKit 0x00338b68 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
17 UIKit 0x0032eb05 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
18 Foundation 0x0004079e __NSFireDelayedPerform + 441
19 CoreFoundation 0x010528c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
20 CoreFoundation 0x01053e74 __CFRunLoopDoTimer + 1220
21 CoreFoundation 0x00fb02c9 __CFRunLoopRun + 1817
22 CoreFoundation 0x00faf840 CFRunLoopRunSpecific + 208
23 CoreFoundation 0x00faf761 CFRunLoopRunInMode + 97
24 GraphicsServices 0x0192e1c4 GSEventRunModal + 217
25 GraphicsServices 0x0192e289 GSEventRun + 115
26 UIKit 0x002cfc93 UIApplicationMain + 1160
27 Prototipo 0x0000261c main + 102
28 Prototipo 0x000025ad start + 53
)
terminate called after throwing an instance of 'NSException'
You've probably have a memory management error and have over-released an object. Read the Memory Management Programming Guide. If you show some of your code we can provide more help.

Object handling error in iPhone, select tab in UITabView and crash

Hey everyone, I'm creating a tab-view application, and in the one tab I have 7 textFields that I am trying to save the information for with a "Save" button. After making the connections between the objects in my controller.h file and the actual text fields, when I select the tab with all this stuff in it, the application crashes and goes to the springboard. I have the debug here:
2011-02-23 08:49:02.522 Tow Boat 911[19138:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x4e0d1d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key colour.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00ec6be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00cbb5c2 objc_exception_throw + 47
2 CoreFoundation 0x00ec6b21 -[NSException raise] + 17
3 Foundation 0x000286cf _NSSetUsingKeyValueSetter + 135
4 Foundation 0x0002863d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x004a78d6 -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00e3d2cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x004a62ed -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x004a8081 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x00360a94 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x0035e709 -[UIViewController loadView] + 120
11 UIKit 0x0035e5e3 -[UIViewController view] + 56
12 UIKit 0x00371230 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 120
13 UIKit 0x0036fd86 -[UITabBarController transitionFromViewController:toViewController:] + 64
14 UIKit 0x00371b7e -[UITabBarController _setSelectedViewController:] + 263
15 UIKit 0x003719ed -[UITabBarController _tabBarItemClicked:] + 352
16 UIKit 0x002b0a6e -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x004ae1f2 -[UITabBar _sendAction:withEvent:] + 422
18 UIKit 0x002b0a6e -[UIApplication sendAction:to:from:forEvent:] + 119
19 UIKit 0x0033f1b5 -[UIControl sendAction:to:forEvent:] + 67
20 UIKit 0x00341647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
21 UIKit 0x0033f16c -[UIControl sendActionsForControlEvents:] + 49
22 UIKit 0x002b0a6e -[UIApplication sendAction:to:from:forEvent:] + 119
23 UIKit 0x0033f1b5 -[UIControl sendAction:to:forEvent:] + 67
24 UIKit 0x00341647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
25 UIKit 0x003401f4 -[UIControl touchesEnded:withEvent:] + 458
26 UIKit 0x002d50d1 -[UIWindow _sendTouchesForEvent:] + 567
27 UIKit 0x002b637a -[UIApplication sendEvent:] + 447
28 UIKit 0x002bb732 _UIApplicationHandleEvent + 7576
29 GraphicsServices 0x016dda36 PurpleEventCallback + 1550
30 CoreFoundation 0x00ea8064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
31 CoreFoundation 0x00e086f7 __CFRunLoopDoSource1 + 215
32 CoreFoundation 0x00e05983 __CFRunLoopRun + 979
33 CoreFoundation 0x00e05240 CFRunLoopRunSpecific + 208
34 CoreFoundation 0x00e05161 CFRunLoopRunInMode + 97
35 GraphicsServices 0x016dc268 GSEventRunModal + 217
36 GraphicsServices 0x016dc32d GSEventRun + 115
37 UIKit 0x002bf42e UIApplicationMain + 1160
38 Tow Boat 911 0x00001df8 main + 102
39 Tow Boat 911 0x00001d89 start + 53
)
terminate called after throwing an instance of 'NSException'
Program received signal: “SIGABRT”.
Thanks everyone for any help in advance!
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key colour.
In this case check the following:
Ensure that you have not misspelled the key you are trying to access i.e. colour.
The class attribute you are trying to access i.e. colour should be Key Value compliant. You can have the attribute declared as a property in header and synthesize the same in the implementation file. Do not change the default name for the getter and setter in the property declaration. The default method name/signature is KVC compliant.
Apple documentation on KVC covering the accessor method code: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueCoding/Articles/Overview.html
If you are using core data ensure that the property being accessed is present in the corresponding header file and also has its code in the implementation file. It can happen that you have added this property later to the model and have not updated the generated header and implementation file.
Came across this post without an answer so thought I would put a response which may help someone else.

terminate called after throwing an instance of 'NSException' error

Can you please help me, my application worked well, but when i did a modification on it, (i don't remember what kind of modification) i got this message in the console:
[Session started at 2010-11-21 17:15:36 -0500.]
2010-11-21 17:15:37.472 ITMFR[3942:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x6a50d90> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.'
*** Call stack at first throw:
(
0 CoreFoundation 0x021f2b99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0234240e objc_exception_throw + 47
2 CoreFoundation 0x021f2ad1 -[NSException raise] + 17
3 Foundation 0x000320f3 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x00032061 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x004b070a -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x02168d0f -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x004af121 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x004b0eb5 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x002bc402 -[UIApplication _loadMainNibFile] + 172
10 UIKit 0x002bd31c -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 198
11 UIKit 0x002c73ec -[UIApplication handleEvent:withNewEvent:] + 1958
12 UIKit 0x002bfb3c -[UIApplication sendEvent:] + 71
13 UIKit 0x002c49bf _UIApplicationHandleEvent + 7672
14 GraphicsServices 0x02ad2822 PurpleEventCallback + 1550
15 CoreFoundation 0x021d3ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
16 CoreFoundation 0x02134807 __CFRunLoopDoSource1 + 215
17 CoreFoundation 0x02131a93 __CFRunLoopRun + 979
18 CoreFoundation 0x02131350 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x02131271 CFRunLoopRunInMode + 97
20 UIKit 0x002bcc6d -[UIApplication _run] + 625
21 UIKit 0x002c8af2 UIApplicationMain + 1160
22 ITMFR 0x00003eb8 main + 102
23 ITMFR 0x000028e9 start + 53
24 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
please, HELP ME!!
From the crash report, I would guess that the change you made was to the nib / xib file in Interface builder, specifically in binding a value to a button / control. Check the Inspector for all of your UI controls to make sure that any Button Bindings that are bound to Shared User Defaults Controller have controller key values, and not something else.
This happened to me because I forgot #synthesize.
#synthesize window;
In my view controller.