Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Getting (default) value from settings bundle
  2. <dict>
  3.         <key>AutocapitalizationType</key>
  4.         <string>None</string>
  5.         <key>AutocorrectionType</key>
  6.         <string>No</string>
  7.         <key>DefaultValue</key>
  8.         <string>http://localhost</string>
  9.         <key>IsSecure</key>
  10.         <false/>
  11.         <key>Key</key>
  12.         <string>host_ip</string>
  13.         <key>KeyboardType</key>
  14.         <string>URL</string>
  15.         <key>Title</key>
  16.         <string>Host</string>
  17.         <key>Type</key>
  18.         <string>PSTextFieldSpecifier</string>
  19.     </dict>
  20.        
  21. NSUserDefaults *userDefaults =[NSUserDefaults standardUserDefaults];
  22. NSString *host = [userDefaults stringForKey:@"host_ip"];
  23. NSLog(@"%@",host);