title: How to pass all contacts from iphone (simulator) to a table?
body: <p>I'm a noob on IOS, and I'm trying to pass all contacts from iphone (simulator) to a table. I've followed some tutorials, but I'm getting an error.</p>
  
  <p>Can you help me with that?</p>
  
  <p>I've tried it:</p>
  
  <pre><code>#import &lt;AddressBookUI/AddressBookUI.h&gt;
  .
  .
  .
  ABAddressBookRef addressBook = ABAddressBookCreate( );
  CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople( addressBook );
  CFIndex nPeople = ABAddressBookGetPersonCount( addressBook );
  
  for ( int i = 0; i &lt; nPeople; i++ )
  {
      ABRecordRef ref = CFArrayGetValueAtIndex( allPeople, i );
       NSLog(@"%@",ref);
  }
  </code></pre>
  
  <p>I get this errors:</p>
  
  <pre><code>Undefined symbols for architecture i386:
    "_ABAddressBookCreate", referenced from:
        -[younifyTableViewController viewDidLoad] in younifyTableViewController.o
    "_ABAddressBookCopyArrayOfAllPeople", referenced from:
        -[younifyTableViewController viewDidLoad] in younifyTableViewController.o
    "_ABAddressBookGetPersonCount", referenced from:
        -[younifyTableViewController viewDidLoad] in younifyTableViewController.o
  ld: symbol(s) not found for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>