title: Get data from settings app to the implementation in IOS
body: <p>On my .h:</p>
  
  <pre><code>@property (weak, nonatomic) IBOutlet UILabel *user;
  @property (weak, nonatomic) IBOutlet UILabel *pass;
  @property (weak, nonatomic) IBOutlet UILabel *mail;
  
  -(void)setValuesFromPrefrences;
  </code></pre>
  
  <p>On my .m:</p>
  
  <pre><code>#define kUser @"user"
  #define kPass @"pass"
  #define kMail @"mail"
  
  - (void)setValuesFromPrefrences {
      NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
  
      NSDictionary *initialDefaults=[[NSDictionary alloc]
                                     initWithObjectsAndKeys:
                                     @"Username", kUser,
                                     @"Password", kPass,
                                     @"Mail", kMail,
                                     nil];
      [userDefaults registerDefaults: initialDefaults];
  
      self.user.text = [userDefaults stringForKey:kUser];
      self.pass.text = [userDefaults stringForKey:kPass];
      self.mail.text = [userDefaults stringForKey:kMail];
       }
  
  - (void)viewDidLoad {
      [self setValuesFromPrefrences];
      [super viewDidLoad];
      [self setTitle:@"FEED"];
  
      [self refreshStream: @"1" user:@"user" pass:@"pass" mail:@"mail"]; 
  }
  </code></pre>
  
  <p>How can I get the values from user, pass and mail to the line:</p>
  
  <pre><code>[self refreshStream: @"1" user:@"user" pass:@"pass" mail:@"mail"];
  </code></pre>
  
  <p>Now the code will write the values on labels, and it works - bus I want to use the values in the refreshStream.</p>