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 6328005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:22:53+00:00 2026-05-24T17:22:53+00:00

I am creating simple application that has ability to add events into iPhone Calendar.

  • 0

I am creating simple application that has ability to add events into iPhone Calendar. So I am playing with EKEvent’s recurrenceRule. There is a class EKRecurrenceRule with very long constructor:

(id)initRecurrenceWithFrequency:(EKRecurrenceFrequency)
                   typeinterval:(NSInteger)interval 
                  daysOfTheWeek:(NSArray *)days 
                 daysOfTheMonth:(NSArray *)monthDays 
                monthsOfTheYear:(NSArray *)months 
                 weeksOfTheYear:(NSArray *)weeksOfTheYear 
                  daysOfTheYear:(NSArray*)daysOfTheYear 
                   setPositions:(NSArray *)setPositions 
                            end:(EKRecurrenceEnd*)end

So for example, if I am trying to create a event that will be repeated every work day in the week (except Sunday), I will use this init:

initRecurrenceWithFrequency:EKRecurrenceFrequencyDaily 
                   interval:1 
              daysOfTheWeek:[NSArray arrayWithObjects:
                                [EKRecurrenceDayOfWeek dayOfWeek:2],
                                [EKRecurrenceDayOfWeek dayOfWeek:3],
                                [EKRecurrenceDayOfWeek dayOfWeek:4],
                                [EKRecurrenceDayOfWeek dayOfWeek:5], 
                                [EKRecurrenceDayOfWeek dayOfWeek:6],
                                [EKRecurrenceDayOfWeek dayOfWeek:7], nil] 
            daysOfTheMonth:nil 
           monthsOfTheYear:nil 
            weeksOfTheYear:nil 
             daysOfTheYear:nil 
              setPositions:nil 
                       end:nil

but it is not working, it just repeat event every day :S
When I try use EKRecurrenceFrequencyMonthly, then it works. It repeats event every month, but not on Sunday. I reported bug to Apple, because it seems that they have a bug.

Or you have other idea?

  • 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-24T17:22:54+00:00Added an answer on May 24, 2026 at 5:22 pm

    Apple documentation says:

    @method initRecurrenceWithFrequency:interval:daysOfTheWeek:daysOfTheMonth:monthsOfTheYear:weeksOfTheYear:daysOfTheYear:setPositions:end:

    @abstract The designated initializer.

    @discussion This can be used to build any kind of recurrence rule. But be aware that certain combinations make no sense and will be ignored. For example, if you pass daysOfTheWeek for a daily recurrence, they will be ignored.

    I think, we can’t say it daily and say not on Sunday. Please let me know if I am mistaken.

    Thanks.

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

Sidebar

Related Questions

I am interested in creating a simple web application that will take in user
I am creating a simple application with Django. I realized that I am doing
I'm creating a very simple chat application. It has an ASP.NET web page as
I creating a C# application that has to create a word document. I'm using
I am creating a simple ajax feature into my application where a user can
I'm creating an application that uses curses to build a simple user interface. It
I'm creating a very simple form that has a text area. The text area
I'm creating a simple drawing application using WPF. I've run into some strange behaviour
I am creating a simple application using the MVC design pattern where my model
Was creating a simple console application to do some prototyping and was shocked to

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.