扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 2722|回复: 0
收起左侧

[Hide NC Lines] Tweak 及源码

[复制链接]

一米阳光长工

贡献:735

金钱:276

威望:368

313

主题

322

帖子

3417

积分

发表于 2016-3-2 22:24:56 | 显示全部楼层 |阅读模式
简介:
IOS隐藏通知中心白色分割线 - Hide NC Lines


497604569.png

实现代码如下:
  1. %hook SBNotificationSeparatorView
  2. +(id)separatorForCurrentState {
  3.                 return nil;
  4. }

  5. +(int)separatorViewModeForCurrentState {
  6.                 return 0;
  7. }

  8. +(id)separatorWithScreenScale:(float)screenScale mode:(int)mode {
  9.                 return nil;
  10. }

  11. -(void)setBounds:(CGRect)bounds {

  12. }

  13. -(void)setFrame:(CGRect)frame {

  14. }

  15. -(void)updateForCurrentState {

  16. }
  17. -(id)initWithFrame:(CGRect)frame mode:(int)mode {
  18.                 return nil;
  19. }
  20. %end

  21. %hook SBNotificationCenterSeparatorView
  22. -(id)initWithFrame:(CGRect)theRect mode:(int)theInt {
  23.             return nil;
  24. }
  25. %end
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为兴趣而生…… 立即登录 立即注册
TOP

[Hide NC Lines] Tweak 及源码

简介: IOS隐藏通知中心白色分割线 - Hide NC Lines 实 ...

温馨提示:手机扫描二维码继续浏览

快速回复 返回顶部 返回列表