Last active
August 22, 2020 21:19
-
-
Save adel-ezzat/edce6e27fa7e2d5a7da5b2126ef08331 to your computer and use it in GitHub Desktop.
auto popup i all user apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
#import <Foundation/Foundation.h> | |
#import <objc/runtime.h> | |
static void didFinishLaunching(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef info) { | |
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"WASettingsViewController" message:@"viewDidLoad" | |
delegate:nil | |
cancelButtonTitle:@"OK" | |
otherButtonTitles:nil]; | |
[alert show]; | |
} | |
%ctor { | |
CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, &didFinishLaunching, (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL, CFNotificationSuspensionBehaviorDeliverImmediately); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment