一米阳光长工
|
简介:
IOS隐藏通知中心白色分割线 - Hide NC Lines
实现代码如下:
- %hook SBNotificationSeparatorView
- +(id)separatorForCurrentState {
- return nil;
- }
- +(int)separatorViewModeForCurrentState {
- return 0;
- }
- +(id)separatorWithScreenScale:(float)screenScale mode:(int)mode {
- return nil;
- }
- -(void)setBounds:(CGRect)bounds {
- }
- -(void)setFrame:(CGRect)frame {
- }
- -(void)updateForCurrentState {
- }
- -(id)initWithFrame:(CGRect)frame mode:(int)mode {
- return nil;
- }
- %end
- %hook SBNotificationCenterSeparatorView
- -(id)initWithFrame:(CGRect)theRect mode:(int)theInt {
- return nil;
- }
- %end
复制代码
|
|