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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:08:09+00:00 2026-05-12T14:08:09+00:00

I have a warning and just can’t work out how to make it go

  • 0

I have a warning and just can’t work out how to make it go away.

In my .h I have this…

-(void)restartTimer;

Then the in my .m I have…

-(void)restartTimer{
TimerViewController *TimerView = [[TimerViewController alloc]
  initWithInt:hStart
  number:mStart];

I get this error:

Warning: no ‘-initWithInt:number.’ method found.

I am sure it is very straightforward, the code still works. If anyone can suggest any ways to solve it that would be great. 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-05-12T14:08:09+00:00Added an answer on May 12, 2026 at 2:08 pm
    -(void)restartTimer{
        TimerViewController *TimerView = [[TimerViewController alloc]
            initWithInt:hStart
                 number:mStart];
    ...
    }
    

    (1) TimerView should be timerView, as per Objective-C naming conventions

    (2) Your TimerViewController.h should have a declaration something like:

    - (TimerViewController *) initWithInt: (NSInteger) hStart number: (NSInteger) mStart;
    

    (assuming that you want hStart and mStart to be integers).

    (3) You must import TimerViewController.h in the implementation file that the above code appears in, either directly or indirectly (because it is imported by something else, potentially the project’s PCH file).

    (4) A better name for the method might be:

    - (TimerViewController *) initWithHStart: (NSInteger) hStart mStart: (NSInteger) mStart;
    

    Or something similar — that is, the method should describe the nature of the arguments that it takes.

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

Sidebar

Related Questions

I have a warning in my code that I can't figure out how to
I have this method which jdk1.6 complains (no error just warning) about the generic
I have this warning every time I run my CGI-script (output is rendered by
I have a invalid XML like this Warning: count() [function.count]: Node no longer exists
I have a bit of sample code that is throwing this warning: main.c: In
Warning : I have just picked up Maven, so things mentioned might be wrong
Can anyone just clarify this for me, I was under the impression that to
Have just started out with EF for Oracle in targeting .Net 4.0. Have added
This may be a stupid question but I just can't find the answer. What
This is probably a really simple question, but I just can't find any info

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.