Latest 1.0.0
Homepage https://github.com/TitouanVanBelle/TDBSplashscreen
License MIT
Platforms ios 7.0, requires ARC
Authors

TDBSplashscreen is a pod that allow you to show your splashscreen a little longer while loading new data into your app

Requirements

  • ARC only
  • iOS 7.0+
  • iPhone (iPad soon)
  • Portrait orientation only (Landscape soon)

Install

TDBSplashscreen is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod 'TDBSplashscreen'

Usage

To run the example project run pod try TDBSplashscreen. Or go manual way: clone the repo, run pod install from the Example directory, open the workspace.

Here’s an example of how you should use TDBSplashscreen

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    [self.window makeKeyAndVisible];

    // Create your root view controller
    RootViewController *rootViewController = [[RootViewController alloc] [email protected]"RootViewController" bundle:nil];
    self.window.rootViewController = rootViewController;

    [TDBSplashscreen show];

    // Hide splashscreen in callback
    [[PayloadManager sharedInstance] loadInitialData:^{
        // callback
        [TDBSplashscreen dismiss];
    }];

    return YES;
}

You can also dismiss the splashscreen with a different animation

[TDBSplashscreen dismissWithAnimation:UIModalTransitionStyleCrossDissolve];

You can also add a completion handler to execute code when the splashscreen had been hidden

[TDBSplashscreen dismissWithAnimation:UIModalTransitionStyleCrossDissolve completion:^{

    // Splashscreen has been dismissed

}];

Author

Titouan Van Belle, [email protected]

License

TDBSplashscreen is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TDBSplashscreen",
    "version": "1.0.0",
    "summary": "Splashscreen a little longer",
    "description": "                       TDBSplashscreen is a pod that allow you to show your splashscreen a little longer while loading new data into your app.n",
    "homepage": "https://github.com/TitouanVanBelle/TDBSplashscreen",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Titouan Van Belle": "[email protected]"
    },
    "source": {
        "git": "https://github.com/TitouanVanBelle/TDBSplashscreen.git",
        "tag": "1.0.0"
    },
    "source_files": "Classes/*.{h,m}",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This