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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:48:32+00:00 2026-06-18T04:48:32+00:00

I am using an iOS5 book to learn iOS programming. @synthesize coolWord; ^synthesize is

  • 0

I am using an iOS5 book to learn iOS programming.

@synthesize coolWord;

^synthesize is used for all properties in .m files

I heard that in iOS6 there is no need for synthesize, since it is automatically done for you. Is this true?

Does synthesize play any role for iOS6?

Thanks for the clarification. 🙂

  • 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-18T04:48:34+00:00Added an answer on June 18, 2026 at 4:48 am

    @synthesize in objective-c just implements property setters and getters:

    - (void)setCoolWord:(NSString *)coolWord {
         _coolWord = coolWord;
    }
    
    - (NSString *)coolWord {
        return _coolWord;
    }
    

    It is true with Xcode 4 that this is implemented for you (iOS6 requires Xcode 4). Technically it implements @synthesize coolWord = _coolWord (_coolWord is the instance variable and coolWord is the property).

    To access these properties use self.coolWord both for setting self.coolWord = @"YEAH!"; and getting NSLog(@"%@", self.coolWord);

    Also note, both the setter and getter can still be manually implemented. If you implement BOTH the setter and getter though you NEED to also manually include @synthesize coolWord = _coolWord; (no idea why this is).

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

Sidebar

Related Questions

I am literally following a iOS Programming book (iOS5). it says that there is
I have heard some rumours that Apple is rejecting apps for using the iOS5
I am developing and iOS app with both positions, Landscape and Portrait. Using iOS5,
I'm developing a game using cocos2d v2.0 beta2. Since i worked with iOS5.0 all
I've been using AVAudioPlayer for several iOS apps and they all successfully playback after
Hi I am using ios5 twitter integration, I know that one unique message will
I'm using ios5 storyboard and have a tablview with a uisearchbar that I'm using
I wanna update my app, that is created using iOS5 SDK, to fit iPhone5's
I am using ios6 simulator. Do I require a separate simulator to run ios5
I'm working on a turn based iOS game using the new turn-based iOS5 API.

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.