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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:07:53+00:00 2026-05-15T06:07:53+00:00

Hi i am new to iphone and starts to learning Obj c. i have

  • 0

Hi i am new to iphone and starts to learning Obj c.

i have notice the function definition, for some function we are using (-) and for some function we are using (+)

Example:
+ (id)requestWithURL:(NSURL *)theURL

– initWithURL:

what the difference between those two operator / symbol’s usage?

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-15T06:07:54+00:00Added an answer on May 15, 2026 at 6:07 am

    In the context of a class definition, +/- determine whether the methods are instance or class level methods.

    + indicates the method is class level, and you don’t need an instance to call it.

    - indicates the method is an instance method, and must be called through an instance of an object.

    A common example of a static (+) method is NSString::stringWithFormat, when you call it, you do so without an instance, but rather using the class name:

    [NSString stringWithFormat: @"Your age is %d", age];
    

    An instance method must be called on an instance of an appropriate object, an example of one would be:

    NSString *s = @"oop:ack:zonks::ponies";
    int len = [s length]; // instance method called
    

    These symbols should not be confused with the mathematical operators + and -, which can only be applied as part of binary or unary arithmetic expressions.

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

Sidebar

Related Questions

I have a new iPhone app that has the following (and only the following)
So, pretty new to iPhone dev and learning all the time. I know what
I've only just started learning to build iPhone apps using xcode. I'm slowly getting
I'm very new to iPhone development and I'm making an application where I have
I have an iPhone project that starts out with a standard UIView based Window...
I am new to iPhone development. I've seen many applications, which have their settings
I'm interested in using the new UIPageViewController class in a new treasure hunt iPhone
I am new to iPhone app development and have a question about storing data.
I need some help about JavaScript on iPhone UIWebView ; I have HTML like
The new iPhone 3GS has support for voice commands, stuff like call Bill or

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.