Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8147581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:24:02+00:00 2026-06-06T14:24:02+00:00

I am trying to create a custom popup view that can be called from

  • 0

I am trying to create a custom popup view that can be called from multiple view controllers, but im having some trouble.

I’m able to get it to work fine as long as I write and call a “presentPopup” method from within the viewController itself. Rather then writing an individual method in each VC, i’d much prefer to write a method in a separate class and just pass parameters to personalize it.

Anyway, whenever I try to do so, I keep getting the famous “this class is not key value coding-compliant for the key” error. Just wondering if anyone had any insights as to HOW to make the class key value coding compliant? Or how to go about this in general?? Thanks!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:24:03+00:00Added an answer on June 6, 2026 at 2:24 pm

    There is a simple explanation at the end of this answer, but I’ve seen a few similar questions recently so I thought I’d give a bit of background.

    The error should also be telling you which key the class is not key value coding compliant for. The phrasing of your question suggests that you think there is some general bit of code you can add to make a class “key value coding compliant”. This isn’t the case.

    All cocoa / cocoa touch objects are capable of performing key value coding operations. KVC allows you to reach accessor methods by using valueForKey: or setValue:forKey: instead of using the accessor methods directly.

    The error you are seeing will be along the lines of:

    XXX – this class is not key value coding compliant for key YYY.

    XXX is the class in question, YYY is the key. So somewhere, [xxx setValue:something forKey:@"YYY"] is being called.

    At this point, you’re thinking “but I’ve never used setValue:forKey in my code!”. You may be right. But it is used by the frameworks when you load a xib file – all the outlets are set using key-value coding.

    So, you will have an outlet in your xib that is connected to something that has since been removed or renamed in the class it links to. If you’re lucky, it will have a little exclamation mark next to it. If you’re not, you won’t even see it in interface builder and you’ll have to edit the xib as source code and remove it from the XML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to create a custom combobox that inherited from ComboBox, but I've
I'm trying to create custom view that draws image downloaded from Url. The code
I've been trying to create a custom combo box component but I've been having
Trying to create a custom component that gets it's layout from an XML file
I'm trying to create a custom UIButton that should look like a UIButtonTypeRoundedRect. In
I am trying to create a custom property in a extended control, so that
I am trying to create a custom wpf control, I'm wondering how I can
I am trying to create a Custom control derived from a standard Grid. I
I'm trying to create a custom audio effect by extending from the class android.media.audiofx.AudioEffect
I'm trying to create a custom UserControl that will mimic auto-complete as it works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.