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

just want to ask anyone here can solve this problem? I want to create
This may be a stupid question but I just can't find the answer. What
I have just started out learning rails and ruby, so please bear with me
WARNING: I have been learning Python for all of 10 minutes so apologies for
(Warning - asp newbie) I have an aspx file with the tag <%@ Page
I have a function that gives me the following warning: [DCC Warning] filename.pas(6939): W1035
I have the following code, for which I get the error: Warning : mysqli_stmt::bind_result()
Good morning. I have an XML file which contains lists of warning and errors
Have just started using Google Chrome , and noticed in parts of our site,
I've got a strange problem with SQL Server 2000, and I just can't think

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.