飘云阁

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 3540|回复: 4

[iOS] IOS隐藏通知中心白色分割线 - Hide NC Lines

[复制链接]
  • TA的每日心情
    开心
    2020-5-26 09:10
  • 签到天数: 22 天

    [LV.4]偶尔看看III

    发表于 2015-7-23 14:08:14 | 显示全部楼层 |阅读模式
    iOS隐藏通知中心白色分割线 - Hide NC Lines


    预览图:
    IMG_0102.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
    复制代码



    评分

    参与人数 2飘云币 +40 收起 理由
    Dxer + 20 PYG有你更精彩!
    creantan + 20 PYG有你更精彩!

    查看全部评分

    PYG19周年生日快乐!
  • TA的每日心情
    奋斗
    2015-10-29 08:08
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    发表于 2015-7-23 14:43:29 | 显示全部楼层
    多多发原创教程哦。。。鼓励下{:soso_e179:}
    PYG19周年生日快乐!
  • TA的每日心情
    难过
    2024-3-10 19:49
  • 签到天数: 473 天

    [LV.9]以坛为家II

    发表于 2015-7-24 14:07:38 | 显示全部楼层
    最近论坛那来了 好多移动的大牛哦。不错。支持下
    PYG19周年生日快乐!
  • TA的每日心情
    无聊
    2024-4-1 10:55
  • 签到天数: 280 天

    [LV.8]以坛为家I

    发表于 2020-5-1 15:20:19 | 显示全部楼层
    好久没用苹果,这个区别我都看不出来了
    PYG19周年生日快乐!
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 加入我们

    本版积分规则

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