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 7769433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:09:30+00:00 2026-06-01T16:09:30+00:00

Warning: complete newbie Xcode question. In MainViewController.h I have the following line: IBOutlet WorkItem

  • 0

Warning: complete newbie Xcode question.

In MainViewController.h I have the following line:

IBOutlet WorkItem *m_WIone;

I have created a class called WorkItem which is inherited from UILabel. The line above is so that I can use m_WIone (which will eventually become an array of such objects) as a member variable throughout MainViewController.

I have tried various ways to call WorkItem methods and finally settled on:

[m_WIone Reset];

where Reset is a WorkItem method. The method is declared in WorkItem.h as:

-(void) Reset;

and in WorkItem.m as:

-(void) Reset {}

With or without contents in this method, the app always crashes with:

Thread 1: Program received signal: “SIGABRT”.

In the logging, I read:

Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UILabel Reset]: unrecognized selector sent to instance 0x6a5f9f0’

How can I solve this? Am I even declaring this member variable correctly? (Despite trawling through StackOverflow, I cannot find the solution.)

  • 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-01T16:09:32+00:00Added an answer on June 1, 2026 at 4:09 pm

    Did you specify your custom class for the NIB? It seems like you want a widget in XCode’s Interface Builder to use your custom class. Only the default class (UILabel) would be instantiated instead of your custom class.

    Click on the UILabel you’re using as the outlet and change the class (the screenshot here is for UITableView, but it should work the same for UILabel).

    Custom Class Property

    With that being said, there are alternatives to what you’re trying to do. Instead of just using UILabel (which you eventually plan to make an array of them). Why not use a UITableView and customize cells to what you see fit (since UITableViews optimal for displaying lists of items)?

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

Sidebar

Related Questions

First, fair warning: I am a complete newbie with C# and WPF. I have
WARNING: Complete newbie to RoR and Ruby alert! * I have a login method
(Warning - asp newbie) I have an aspx file with the tag <%@ Page
Firstly I'm a complete newbie when it comes to SQL Server. I have five
I have been complete my class that will connecting to mysql server. When I
Newbie Warning I have a simple but vexing problem trying to disable an NSButton.
I have been working on a site . It displays the following error, Warning:
The complete warning is Validation (): Element 'html' occurs too few times This is
Warning - I am very new to NHibernate. I know this question seems simple
WARNING: I have been learning Python for all of 10 minutes so apologies for

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.