Latest 0.0.1
License MIT
Platforms ios 8.0, requires ARC
Dependencies NSUserDefaults+SettingsBundle

TwentyFourHours is a library for apps that are supposed to run all day long e.g. as a public display.
It lets you specify when the app is allowed to go idle and when not.

As of Version 0.0.1 you can specify

  • the hour of the day after which the app is NOT allowed to go idle
  • the hour of the day after which the app IS allowed to go idle
  • for a) Monday – Friday and b) Saturday.

On Sunday the app is always allowed to go idle

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party code like NSUserDefaults+SettingsBundle in your projects.


pod 'TwentyFourSeven'


Add the setting pane to your existing Settings.bundle’s Root.plist

  <string>Shop Hours</string>

Initialize the Scheduler (objective-c)

in your AppDelegate.m file

#import "AppDelegate.h"

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    [TwentyFourSeven sharedInstance];

in your AppDelegate.h file

#import "TwentyFourSeven-Swift.h"

Latest podspec

    "name": "TwentyFourSeven",
    "version": "0.0.1",
    "license": {
        "type": "MIT"
    "homepage": "",
    "authors": {
        "Dominik Heier": "[email protected]"
    "summary": "Schedule when your app should be allowed to go idle and when it should not",
    "source": {
        "git": "",
        "tag": "0.0.1"
    "source_files": "*.swift",
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "resource_bundles": {
        "Settings": "ShopHours.plist"
    "dependencies": {
        "NSUserDefaults+SettingsBundle": [
            "~> 0.0.2"

Pin It on Pinterest

Share This