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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:11:15+00:00 2026-05-25T19:11:15+00:00

I am creating several UILocalNotifications with different repeatIntervals. All repeat intervals are assigned using

  • 0

I am creating several UILocalNotifications with different repeatIntervals.

All repeat intervals are assigned using a NSCalendarUnit, like

myNotification.repeatInterval = NSWeekdayCalendarUnit;

I am debugging. When I print the NSArray containing the notifications using

NSArray*  oldNotifications = [app scheduledLocalNotifications];
NSLog(@"alarms = %@", oldNotifications);

I see the notification printed as this:

“{fire date = 2011-09-19
06:26:00 +0000, time zone = Europe/Lisbon (WEST) offset 3600
(Daylight), repeat interval = 512, next fire date = 2011-09-19
06:26:00 +0000}”

Notice that the repeat interval is a number, in this example 512, but it can be 256, 0, whatever.

Where do I find the equivalence of these numbers withe the NSCalendarUnit? I need to know what they are, so I can debug. “Jump to definition” on Xcode does not shows the numbers.

thanks

  • 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-25T19:11:15+00:00Added an answer on May 25, 2026 at 7:11 pm

    Duh! I realized I could simple print the values like this:

    NSLog(@"NSEraCalendarUnit = %d", NSEraCalendarUnit);
    NSLog(@"NSYearCalendarUnit = %d", NSYearCalendarUnit);
    NSLog(@"NSMonthCalendarUnit = %d", NSMonthCalendarUnit);
    NSLog(@"NSDayCalendarUnit = %d", NSDayCalendarUnit);
    NSLog(@"NSHourCalendarUnit = %d", NSHourCalendarUnit);
    NSLog(@"NSMinuteCalendarUnit = %d", NSMinuteCalendarUnit);
    NSLog(@"NSSecondCalendarUnit = %d", NSSecondCalendarUnit);
    NSLog(@"NSWeekCalendarUnit = %d", NSWeekCalendarUnit);
    NSLog(@"NSWeekdayCalendarUnit = %d", NSWeekdayCalendarUnit);
    

    … etc

    to know the equivalence in integers.

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

Sidebar

Related Questions

I am creating several image dynamically using the following code: function refresh_gallery(galleryidentifier, albumid) {
using c# (asp.net) i'm programmatically creating several drop down lists (random number). the user
I have seen several methods for creating simple fixed width single column layout using
I am creating a Composite WPF (Prism) app with several different projects (Shell, modules,
I'm creating WebResources.resx file with several string messages I'd like to categorize: Signup_Status_Inactive Signup_Status_Reserved
I'm creating new application using zend framework with several modules. Can you please advice
I have tried creating several web parts using Visual Studio 2010 using available guides
Im creating several grids with data using this code: @foreach(var set in viewModelEnvironment.SystemEnvironmentVariabelSets) {
I'm creating several catalogs for different types of objects, hoping to speed things up
Creating a voting system just like stackoverflow. Questions like this have been asking several

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.