explaingit

coderzhuxh/xhlaunchad

Analysis updated 2026-07-03

3,684Objective-CAudience · developerComplexity · 2/5Setup · easy

TLDR

XHLaunchAd is an iOS Objective-C library that adds a full-screen launch advertisement with a countdown timer and skip button to iPhone and iPad apps, supporting images, GIFs, and MP4 videos with automatic local caching.

Mindmap

mindmap
  root((XHLaunchAd))
    What it does
      Launch screen ads
      Countdown and skip
      Local caching
    Ad formats
      Static images
      Animated GIFs
      MP4 video
    Configuration
      Remote URL or bundle
      Display duration
      Tap action delegate
    Setup
      CocoaPods install
      iOS 8 and later
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a full-screen launch ad with a skip button to an iOS app using a few lines of Objective-C configuration.

USE CASE 2

Show a promotional image or video on app launch that opens a URL when tapped.

USE CASE 3

Pre-cache the next ad in the background so it displays instantly on the next app open without a loading delay.

USE CASE 4

Display a launch ad that works offline by serving a locally cached version when no network is available.

What is it built with?

Objective-CiOSCocoaPods

How does it compare?

coderzhuxh/xhlaunchadleichunfeng/mvvmreactivecocoayalantis/foldingtabbar.ios
Stars3,6843,6963,671
LanguageObjective-CObjective-CObjective-C
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Install via CocoaPods, requires iOS 8 or later.

In plain English

XHLaunchAd is an iOS library that adds a launch screen advertisement to iPhone and iPad apps. Many apps show a full-screen or half-screen image or short video when they first open, with a countdown timer and a skip button. This library handles all of that so developers do not have to build it from scratch. The library supports static images, animated GIFs, and MP4 video ads. Images can be loaded from the app bundle or downloaded from a remote URL. Once downloaded, the library caches them locally so that subsequent app launches can show the ad immediately without waiting for a network request. There is also a pre-caching API that lets you download and store the next ad in the background before it is needed. You configure the ad by creating a configuration object and setting properties on it: the image or video URL, how long to display it, the frame size, what happens when the user taps it, whether a skip button appears and what style it uses, and what animation plays when the ad finishes. The library calls a delegate method you provide when the user taps the ad, passing along whatever model object you attached to the configuration. The README is written in Chinese and covers the main use cases with code samples in Objective-C. It also explains common problems developers run into, such as why the app might jump to the root view controller before the ad appears (you need to call setWaitDataDuration before making your ad data request), and why cached ads do not display when the network is off (you need to initialize the ad inside your request failure callback as well). Installation is done through CocoaPods. The library supports iOS 8 and later.

Copy-paste prompts

Prompt 1
Using XHLaunchAd, write the Objective-C code to show a full-screen image ad for 3 seconds on app launch with a skip button in the top right corner.
Prompt 2
Show me how to configure XHLaunchAd to play an MP4 video ad on launch and open a URL when the user taps it.
Prompt 3
I want to pre-cache tomorrow's launch ad using XHLaunchAd's pre-caching API. Write the Objective-C code to download and store it in the background.
Prompt 4
My XHLaunchAd launch ad is not showing when the user is offline. Help me fix this by calling setWaitDataDuration and initializing the ad inside the network request failure callback.

Frequently asked questions

What is xhlaunchad?

XHLaunchAd is an iOS Objective-C library that adds a full-screen launch advertisement with a countdown timer and skip button to iPhone and iPad apps, supporting images, GIFs, and MP4 videos with automatic local caching.

What language is xhlaunchad written in?

Mainly Objective-C. The stack also includes Objective-C, iOS, CocoaPods.

How hard is xhlaunchad to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is xhlaunchad for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub coderzhuxh on gitmyhub

Verify against the repo before relying on details.