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

  • Home
  • SEARCH
  • 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 6055287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:14:54+00:00 2026-05-23T08:14:54+00:00

Take a look at the documentation for EKCalendar . It’s pretty simple, it has

  • 0

Take a look at the documentation for EKCalendar. It’s pretty simple, it has five properties, only one of which is a string called title. 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 account.

What I can’t figure out, is how to do the same, because although you can see the account when you NSLog a EKCalendar instance, you can’t access it:

EKCalendar <0x1851b0> {title = Work; type = CalDAV; account = some@addr.ess; allowsModify = YES; color = 0.690196 0.152941 0.682353 1.000000}

There is no account property, and trying to access the valueForKey:@"account" isn’t working either, unsurprisingly.

So how do I get to that account property? Such a simple thing, driving me nuts! Help is much appreciated.

Update: since iOS 5.0, EKCalendar has a source property.

  • 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-05-23T08:14:54+00:00Added an answer on May 23, 2026 at 8:14 am

    If you use class-dump on the iOS 4.3 (Simulator) SDK, you’ll see that there’s a read-only method -(id)accountName. However, since it’s not in the headers, it’s unfortunately private API and you can’t use it if you want your App to be accepted in the App Store.

    I recommend that you file an enhancement request with Apple requesting that this method be made public.

    Though thinking about it: If you’re really desperate, why not parse the output of -[EKCalendar description]? It’s very very very bad style and it’ll probably break in the future, but you might make it through the App Store review 😉 In particular if you only use it for grouping and write your code extremely defensive so it doesn’t break but simply doesn’t group, should the output of the description method be formatted differently.

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

Sidebar

Related Questions

Take a look at this code: public class Test { public static void main(String...
Please take a look at this spider example in Scrapy documentation. The explanation is:
When I take a look at the great looking Grails Reference Documentation (http://grails.org/doc/latest/) and
I've had a good look through a load of MS documentation only to find
Take a look at the ssl_requirement plugin. Shouldn't it check to see if you're
Take a look at the graphics part of the GoogleAPI reference . It says
take a look at this example code: public class Comment { private Comment() {
Take a look at the image below. I defined the red boxes inside the
Take a look at this html: <head> <title>Test page</title> <script type=text/javascript> function submitForm() {
Take a look at this table: <table cellpadding=0 cellspacing=0 class=order_form> <tr> <th>Amount</th> <th>Desc</th> <th>Price</th>

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.