AGSAttributeCollectorViewController: this class is not key value coding-compliant for

1191
3
Jump to solution
05-02-2014 12:52 AM
KristofferStenersen
Occasional Contributor
Hi,

I´m unable to edit my AGSGDBFeature using the AGSAttributeCollectorViewController. I´ve tried various initialisers, but as soon as I start editing my feature the app crashes with the following trace:

(FYI; I´m sure I´m using the lateste SDK).


'[<AGSAttributeCollectorViewController 0xd9b9fa0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key titleLabel.'
*** First throw call stack:
(
0   CoreFoundation                      0x046441e4 __exceptionPreprocess + 180
1   libobjc.A.dylib                     0x043988e5 objc_exception_throw + 44
2   CoreFoundation                      0x046d3fe1 -[NSException raise] + 17
3   Foundation                          0x02c61d9e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4   Foundation                          0x02bce1d7 _NSSetUsingKeyValueSetter + 88
5   Foundation                          0x02bcd731 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6   Foundation                          0x02c2fb0a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
7   UIKit                               0x0326a1f4 -[UIRuntimeOutletConnection connect] + 106
8   libobjc.A.dylib                     0x043aa7de -[NSObject performSelector:] + 62
9   CoreFoundation                      0x0463f76a -[NSArray makeObjectsPerformSelector:] + 314
10  UIKit                               0x03268d4d -[UINib instantiateWithOwner:options:] + 1417
11  UIKit                               0x030d16f5 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
12  UIKit                               0x030d1e9d -[UIViewController loadView] + 302
13  UIKit                               0x030d20d3 -[UIViewController loadViewIfRequired] + 78
14  UIKit                               0x030d25d9 -[UIViewController view] + 35
15  myapp                          0x000966a5 -[AGSPopupsContainerViewController ags_showViewController:fromViewController:atRect:] + 197
16  myapp                          0x0009fca6 -[AGSPopupViewController startEditingFieldAtIndex:] + 1142
17  myapp                          0x0009f79d -[AGSPopupViewController tableView:didSelectRowAtIndexPath:] + 93
18  UIKit                               0x0309d9a1 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1513
19  UIKit                               0x0309db14 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 279
20  UIKit                               0x030a210e __38-[UITableView touchesEnded:withEvent:]_block_invoke + 43
21  UIKit                               0x02fd10aa ___afterCACommitHandler_block_invoke + 15
22  UIKit                               0x02fd1055 _applyBlockToCFArrayCopiedToStack + 403
23  UIKit                               0x02fd0e76 _afterCACommitHandler + 532
24  CoreFoundation                      0x0460c36e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
25  CoreFoundation                      0x0460c2bf __CFRunLoopDoObservers + 399
26  CoreFoundation                      0x045ea254 __CFRunLoopRun + 1076
27  CoreFoundation                      0x045e99d3 CFRunLoopRunSpecific + 467
28  CoreFoundation                      0x045e97eb CFRunLoopRunInMode + 123
29  GraphicsServices                    0x055925ee GSEventRunModal + 192
30  GraphicsServices                    0x0559242b GSEventRun + 104
31  UIKit                               0x02fb3f9b UIApplicationMain + 1225
32  myapp                          0x000051fd main + 141
33  libdyld.dylib                       0x08b0d701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
Have you added ArcGIS.bundle to your Xcode project?

Regards,
Nimesh

View solution in original post

0 Kudos
3 Replies
KristofferStenersen
Occasional Contributor
My VC inherits the AGSAttributeCollectorViewController and initializes with the following..

AGSGDBFeature *feature = // From query towards an AGSGDBFeatureTable
AGSPopupInfo *popupInfo = [AGSPopupInfo popupInfoForGDBFeatureTable:feature.table];
AGSPopup *popup = [[AGSPopup alloc]initWithGDBFeature:feature popupInfo:popupInfo];
[self setPopups:@[popup]];

..and I start ediding as soon as view appears:

- (void)viewDidAppear:(BOOL)animated{
    [self startEditingCurrentPopup];
}

The feature appears correctly, but as soon as I click a row, the app crashes
0 Kudos
NimeshJarecha
Esri Regular Contributor
Have you added ArcGIS.bundle to your Xcode project?

Regards,
Nimesh
0 Kudos
KristofferStenersen
Occasional Contributor
Yes I had - but an old version was copied into the project.

-Made a reference to the current version in the SDK folder, and now it runs just fine.

Thanks!

Kristoffer
0 Kudos