Skip to content

Instantly share code, notes, and snippets.

@adel-ezzat
Last active August 22, 2020 21:19
Show Gist options
  • Save adel-ezzat/edce6e27fa7e2d5a7da5b2126ef08331 to your computer and use it in GitHub Desktop.
Save adel-ezzat/edce6e27fa7e2d5a7da5b2126ef08331 to your computer and use it in GitHub Desktop.
auto popup i all user apps
#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