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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:15:58+00:00 2026-05-25T10:15:58+00:00

I have declared a method in a view controller as: -(void)rqst_run{ // method login

  • 0

I have declared a method in a view controller as:

-(void)rqst_run{
     // method login here
}

When I wrote the code below (in the same file) in ViewDidLoad method after [super viewDidLoad];

[self rqst_run];

I get this error:

Method '-rqst_run' not found (return type defaults to 'id')

Any idea how to fix this?

Thx in advance

Stephane

  • 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-25T10:15:59+00:00Added an answer on May 25, 2026 at 10:15 am

    Methods need to be declared before they’re used.

    You can solve your issue in one of two ways:

    • Move the declaration of rqst_run to before the declaration of viewDidLoad
    • Declare rqst_run in the @interface section for your class (either in the .h, or a class continuation in your .m)

    The second is the best of those, so you would, for example, add something akin to the below at the top of your .m

    @interface MyClass()
    - (void) rqst_run;
    @end
    

    If you’re not familiar with the concept of class continuations, this page offers a reasonable summary; in essence, an @interface section in the .m for declarations that you want kept out of the “public interface” (i.e. the .h)

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

Sidebar

Related Questions

I have declared an NSMutableArray *categories in my view controller .h file, and declared
I have a method SetBallVisibility declared in the interface for my view controller. However,
I have a C# interface with certain method parameters declared as object types. However,
In my C# source code I may have declared integers as: int i =
I have the following utility method declared, where players is a NSMutableArray object and
In a word, how? I have a view controller that creates a few custom
I have this in my view controller: [[[UIApplication sharedApplication] delegate] sendMessageAsSingleObject:[sender currentTitle]]; Which gives
I have a view with several buttons that all have the same target and
I have come across a strange behavior... In class A, at the viewDidLoad method
I have a COM object written using the MS ATL library. I have declared

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.