iphoneiosxcodepagecontrol

Xcode "this class is not key value coding-compliant for the key pageControl."


Please someone help me! I've been at this all day. I've seen several different stackoverflow questions that got answered with this problem, but I've tried everything, and I just can't figure it out. Here is my whole project so I don't have to paste multiple files worth of code here. The problem is that when I try to run my app, Xcode gives me this error in the console.

2012-04-23 17:28:33.638 KMLViewer[96646:11603] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x6d8d5e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key pageControl.'
*** First throw call stack:
(0x114c022 0x12ddcd6 0x114bee1 0xc5022 0x36f6b 0x36edb 0x51d50 0x59771a 0x114ddea 0x10b77f1 0x59626e 0x597eb7 0x374ce1 0x374ff8 0x37417f 0x383183 0x383c38 0x377634 0x1d46ef5 0x1120195 0x1084ff2 0x10838da 0x1082d84 0x1082c9b 0x373c65 0x375626 0x27bd 0x2735)
terminate called throwing an exception

Thanks for any help! Here's the link to download it: http://www.mediafire.com/?4rd4xy8of1yv4ea


Solution

  • The error shows that the pageControl setter is being called on a UIApplication object but it is defined on your UIScrolView_... class. This indicates a mixup between two class names; one place where this is common is in nib files. It turns out that your 'Main nib file base name' (located in the Info settings for the KMLViewer target) is wrong - it should be MainWindow. Once you fix that - the application runs a bit further but runs into a 'map' setter problem (which is probably fixed by @obuseme's response).