Skip to content

Instantly share code, notes, and snippets.

@codexss
Created June 26, 2019 14:13
Show Gist options
  • Save codexss/90950ca0caef572a0e65c6823a4df1b2 to your computer and use it in GitHub Desktop.
Save codexss/90950ca0caef572a0e65c6823a4df1b2 to your computer and use it in GitHub Desktop.
hook pixiv ad-banner
#import <UIKit/UIViewController.h>
@interface _TtC5pixiv26AdContainingViewController : UIViewController
@property(nonatomic) __weak UIView *adContainerView;
@end
%hook _TtC5pixiv26AdContainingViewController
- (void)viewDidLayoutSubviews{
[self.adContainerView removeFromSuperview];
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment