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

  • Home
  • SEARCH
  • 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 8910415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:41:04+00:00 2026-06-15T03:41:04+00:00

Here are the areas of concern in my class: .h @interface TimerViewController : UIViewController

  • 0

Here are the areas of concern in my class:

.h

@interface TimerViewController : UIViewController <UITextFieldDelegate> {
    IBOutlet UITextField *hourField,*minuteField;
}

@property (strong, nonatomic) IBOutlet UITextField *hourField,*minuteField;

@end

.m

@implementation TimerViewController
@synthesize hourField,minuteField;

@end

My issue is that I can use the text fields multiple times (retrieve and set properties) before the app crashes with this log:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'-[__NSCFString setText:]: unrecognized selector sent to instance 0x1e1dafa0' 

This happens when the code [self.hourField setText:@"5"]; is run. It can also happen when checking if [self.hourField isFirstResponder] with the same type of log.

The console sees the text field as a __NSCFString which leads me to think it may have been released?

Runs with ARC, and I’m always using synthesised accessors. Never had this issue before and can’t see where I’m going wrong.

  • 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-15T03:41:05+00:00Added an answer on June 15, 2026 at 3:41 am

    I think the problem may be a confusion with how you declared the variables. You do not need the @synthesize statement anymore and and normally you would want to have your private iVars have a different spelling than your property declarations. To see if this is the problem remove both your @property declaration and your @synthesize and access hourField simply as [hourField setText:@”5″]; . Another way would be to remove the @synthesize and the iVar declarations altogether.

    Other I would check are whether the IBOutlet is connected to the right item in your .xib or storyboard.

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

Sidebar

Related Questions

I have carried the method here on almost all of the areas where I
I'm looking at Haacks article here - http://haacked.com/archive/2009/07/31/single-project-areas.aspx When I download the sample I
I have three models of concern here: User Fight FightPunches Punches The associations are
Here's a simple MVC View that displays all Areas in a DB and then
I am trying to add a border around an Image Map Areas. Here is
Okay, here's my problem. The system I'm working with uses objects called Areas to
Google Maps API V3 Gray Areas Here, it says we need to call google.maps.event.trigger(map,
Im having an issue with areas and generating links from them. Here's the rough
I've only read a few tidbits here and there about areas so far and
I have a bit of an SQL problem. Here are my tables: areas(id, name,

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.