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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:20:37+00:00 2026-06-02T22:20:37+00:00

Overview I am creating a notification based on an existing instance of UILocalNotification Existing

  • 0

Overview

  • I am creating a notification based on an existing instance of UILocalNotification
  • Existing instance has repeatInterval set to NSWeekdayCalendarUnit

What I want to do

  • I want to set repeatInterval to no repeat,

Question

  • What is the constant that I should set repeatInterval to in order for it not to repeat ?
  • 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-06-02T22:20:42+00:00Added an answer on June 2, 2026 at 10:20 pm

    Taken from Apple documentation:

    If you assign an calendar unit such as weekly (NSWeekCalendarUnit) or
    yearly (NSYearCalendarUnit), the system reschedules the notification
    for delivery at the specified interval. The default value is 0, which
    means don’t repeat.

    I assume you want to cancel the notification with the repeating interval, you can do that in two ways:

    1. Cancel all the notifications.
    2. Cancel only that notification.

    The first option is easy, use:

    cancelAllLocalNotifications
    

    In your app delegate.

    The second one requires more work. You need to go through the pending notifications (use scheduledLocalNotifications) and cancel the notification.

    In order to know which notifications is going to be canceled you can use the userInfo property when you set the notification. For example set an unique ID for every notification so when you cancel that notification you simply compare that ID with all the IDs in your scheduledLocalNotifications array.

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

Sidebar

Related Questions

I've created a fiddle to demonstrate my issue: http://jsfiddle.net/motocomdigital/QyhpX/5/ OVERVIEW I'm creating a tabbed
Problem Overview: My application has an enrollment form. Users have a habit of entering
I am creating a plugin and it cannot access $(this). A simple overview of
ECMAScript 5 has quite a few nice additions. John Resig has a good overview
I'm creating a overview of TopDesk. I've wanted to ask some of you what
I've been creating a blog, which contains of 3 diffrent views. - Overview -
this is an odd one! Overview: I'm creating a web app and I've created
I'm creating a JavaScript-driven timetable overview screen. It shows times of day as rows
I'm creating a module that let's your users add feeds. So i want my
Overview: I have an array of 20 byte strings that needs to be stored

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.