title: How to access an EKCalendar's `account` property
body: <p>Take a look at <a href="http://developer.apple.com/library/ios/#documentation/DataManagement/Reference/EKCalendarClassRef/Reference/Reference.html" rel="nofollow">the documentation for EKCalendar</a>. It's pretty simple, it has five properties, only one of which is a string called <code>title</code>. Now if you have multiple calendars on your iPhone and you open iCal's Calendar settings, you can see that all calendars are nicely grouped by another string called <code>account</code>. </p>
  
  <p>What I can't figure out, is how to do the same, because although you can see the <code>account</code> when you <code>NSLog</code> a <code>EKCalendar</code> instance, you can't access it:</p>
  
  <blockquote>
    <p>EKCalendar &lt;0x1851b0> {title = Work; type = CalDAV; account = some@addr.ess; allowsModify = YES; color = 0.690196 0.152941 0.682353 1.000000}</p>
  </blockquote>
  
  <p>There is no <code>account</code> property, and trying to access the <code>valueForKey:@"account"</code> isn't working either, unsurprisingly.</p>
  
  <p>So how do I get to that <code>account</code> property? Such a simple thing, driving me nuts! Help is much appreciated.</p>
  
  <p><strong>Update:</strong> since iOS 5.0, <a href="https://developer.apple.com/library/ios/documentation/DataManagement/Reference/EKCalendarClassRef/Reference/Reference.html#//apple_ref/occ/instp/EKCalendar/source" rel="nofollow">EKCalendar has a <code>source</code> property</a>.</p>