{"id":17146200,"url":"https://github.com/inamiy/yisplashscreen","last_synced_at":"2025-04-13T09:32:08.415Z","repository":{"id":3600438,"uuid":"4664831","full_name":"inamiy/YISplashScreen","owner":"inamiy","description":"Easy splash screen + animation maker for iOS5+.","archived":false,"fork":false,"pushed_at":"2014-01-30T10:19:42.000Z","size":7003,"stargazers_count":140,"open_issues_count":3,"forks_count":28,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-27T01:35:27.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.moongift.jp/2012/09/20120909-2/","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inamiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-14T15:17:53.000Z","updated_at":"2024-12-31T15:29:22.000Z","dependencies_parsed_at":"2022-08-24T09:00:39.127Z","dependency_job_id":null,"html_url":"https://github.com/inamiy/YISplashScreen","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYISplashScreen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYISplashScreen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYISplashScreen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inamiy%2FYISplashScreen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inamiy","download_url":"https://codeload.github.com/inamiy/YISplashScreen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690855,"owners_count":21146218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T21:08:05.792Z","updated_at":"2025-04-13T09:32:04.828Z","avatar_url":"https://github.com/inamiy.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"YISplashScreen 1.2.1\n====================\n\nEasy splash screen + animation maker for iOS5+ (including iOS7).\n\n\u003cimg src=\"https://raw.github.com/inamiy/YISplashScreen/master/Screenshots/screenshot1.png\" alt=\"ScreenShot1\" width=\"225px\" style=\"width:225px;\" /\u003e\n\n- `YISplashScreen` creates another UIWindow on top of status-bar so that transition will be nicer, compared to adding splash image directly on `mainWindow.rootViewController.view`.\n- `animationBlock` is used to hide splash image with two arguments:\n  - `splashLayer`: splash image layer\n  - `rootLayer`: copy of `mainWindow.rootViewController.view.layer`\n\n### View hierarchy before animation\n\n- mainWindow (not visible)\n    - mainWindow.rootViewController.view\n- splashWindow\n    - splashWindow.rootViewController.view (rotateable)\n        - rootLayer (copy of mainWindow.rootViewController.view)\n        - splashLayer (splash image layer)\n\nInstall via [CocoaPods](http://cocoapods.org/)\n----------\n\n```\npod 'YISplashScreen'\n```\n\nHow to use\n----------\n\n```\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n    // show splash\n    [YISplashScreen show];\n    \n    // simple fade out\n    [YISplashScreen hide];\n    \n    return YES;\n}\n```\n\nHiding Animations\n-----------------\n```\n// simple fade out\n[YISplashScreen hide];\n\n// cube\n[YISplashScreen hideWithAnimation:[YISplashScreenAnimation cubeAnimation]];\n\n// manually add animation\n[YISplashScreen hideWithAnimationBlock:^(CALayer* splashLayer, CALayer* rootLayer) {\n    \n    // splashLayer moves up\n    [CATransaction begin];\n    [CATransaction setAnimationDuration:0.7];\n    [CATransaction setAnimationTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];\n    \n    splashLayer.position = CGPointMake(splashLayer.position.x, splashLayer.position.y-splashLayer.bounds.size.height);\n    \n    [CATransaction commit];\n    \n}];\n```\n\nCoreData Migration\n------------------\nBy using `[YISplashScreen showAndWaitForMigration:completion:]` (optional), you can easily integrate simple UIAlertView-confirmation UI.\n\n```\n[YISplashScreen showAndWaitForMigration:^{\n    \n    //\n    // NOTE: add CoreData migration logic here\n    //\n    \n    NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:\n                             [NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption,\n                             [NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil];\n    \n    [persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType\n                                             configuration:nil\n                                                       URL:url\n                                                   options:options\n                                                     error:nil];\n\n} completion:^{\n    \n    [YISplashScreen hide];\n    \n}];\n```\n\nLicense\n-------\n`YISplashScreen` is available under the [Beerware](http://en.wikipedia.org/wiki/Beerware) license.\n\nIf we meet some day, and you think this stuff is worth it, you can buy me a beer in return.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finamiy%2Fyisplashscreen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finamiy%2Fyisplashscreen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finamiy%2Fyisplashscreen/lists"}