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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:22:34+00:00 2026-06-15T13:22:34+00:00

I store some data in NSUserDefaults and keychain and I have a wrapper. For

  • 0

I store some data in NSUserDefaults and keychain and I have a wrapper. For example

- (NSString *)userPassword
{
    return [UICKeyChainStore stringForKey:KEY_USER_PASSWORD];
}

- (void)setUserPassword:(NSString *)userPassword
{
    [UICKeyChainStore setString:userPassword forKey:KEY_USER_PASSWORD];
}

How should properties definition look like? Now I use as follows

@property (nonatomic, strong) NSString *userEmail;

But now I have a doubt if I should use strong statement there since I haven’t an ivar for it.

Thanks in advance.

  • 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-15T13:22:36+00:00Added an answer on June 15, 2026 at 1:22 pm

    strong or weak both will be fine.

    Its your custom method, this implies that you are overriding the compiler’s method, or rather compiler will not create methods for those properties.

    EDIT:

    One more thing for you 🙂

    Is there any advantage of having atomic property for saving in keychains/userdefaults?

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

Sidebar

Related Questions

I have somethings to store some data. Some of it information about how I'm
I am using NSUserDefaults to store some data in my application. NSUserDefaults *prefs =
I need some help to store some data efficiently. I have a large list
In my App i am using NSUserDefaults to save some data. I have a
While my iPhone app is running I store some data (NSStrings) in the NSUserDefaults.
I need to store some data in an ini file, and I have run
I'm storing all my data in NSUserDefaults. Now I'm trying to store some keys
I store some data as XML and the changes of the user as diff
I store some data in a database and I read those data with a
I store some data in MySQL and want to filter out rows that match

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.