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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:41:03+00:00 2026-05-30T08:41:03+00:00

I am developing an iphone app using Monotouch. I am able to add events

  • 0

I am developing an iphone app using Monotouch. I am able to add events to the DefaultCalendarForNewEvents calendar (the same calendar I’m using to find and delete them) without a problem. However, every time I call a method in the app to remove an event from the calendar, every instance of the event still shows up in the calendar application even if the calendar application is shut down and restarted, or ensured that it was not running while my app was manipulating the calendar. I’m getting breakpoints on the RemoveEvents line, and it is returning true. This is my function:

public static void descheduleReminderEvent(string presc_id_for_del) {
    EKEventStore store = new EKEventStore();
    EKCalendar calendar = store.DefaultCalendarForNewEvents;

    if (calendar != null) {
        NSDictionary readonlyDic = dStor.DictionaryForKey("savedCalReminders");
        if(readonlyDic != null) {
            NSMutableDictionary savedCalReminders = NSMutableDictionary.FromDictionary(readonlyDic);
            foreach(NSString prescId in savedCalReminders.Keys) {
                if(string.Compare(prescId, presc_id_for_del) == 0) {
                    EKEvent currentEvent = store.EventFromIdentifier(savedCalReminders.ObjectForKey(prescId).ToString());
                    if(currentEvent != null) {
                        savedCalReminders.Remove(prescId);
                        dStor.SetValueForKey(savedCalReminders, new NSString("savedCalReminders"));
                        store.RemoveEvents(currentEvent, EKSpan.FutureEvents, new IntPtr());
                    }
                    break;
                }
            }
        }
    }
}

Can someone tell me what I’m missing?

  • 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-30T08:41:04+00:00Added an answer on May 30, 2026 at 8:41 am

    Turns out my problem was elsewhere and monodevelop just wasn’t throwing the errors. The code above will in fact remove events if anyone cares to use it.

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

Sidebar

Related Questions

I am developing a iPhone app using Monotouch. I need to access a Sqlite
I'm developing an iPhone-application using monotouch. In this app, the user is supposed to
Am looking into developing an iPhone native app using Titanium Developer Since this is
I've been developing my first iPhone app part-time and would like to start using
I am developing an iPhone app using cocos2d and box2d.In this app i require
I am developing an iPhone app and are using xCode to do Build and
I am using XCode4.2 and developing and iPhone App I ususally save data using
I'm developing an iPhone app with latest SDK and XCode 4.2 I'm using this
I'm developing a iPhone App, in which I'm changing the ViewController using presentModalViewController method
I am developing an iPhone app where I am using a local Mac as

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.