IOS 5.0 越狱如何自定义/屏蔽横幅通知

标签 ios notifications jailbreak customization banner

我想知道,在 iOS 5 中,我必须连接到什么 header /函数才能自定义或阻止横幅通知?到目前为止,我已经尝试了很多功能,但它们似乎都不起作用了。

非常感谢任何帮助。

谢谢!!

最佳答案

尝试 Hook - SBBulletinBannerController 中的 (void)_presentBannerForItem:(id)arg1 方法。如果您使用的是 Theos,那么以下代码片段应该会阻止显示横幅通知。如需更多控制,请查看此类中的其他方法

#import <SpringBoard/SpringBoard.h>

%hook SBBulletinBannerController

- (void)_presentBannerForItem:(id)arg1
{
    %log;

}
%end

关于IOS 5.0 越狱如何自定义/屏蔽横幅通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8811517/

相关文章:

ios - .usesFontLeading 不起作用

JavaScript:避免重复的通知

android - 在 Oreo 中安排任务和提醒的正确方法是什么?

ios - 如何将 Item 插入到 collectionView 中? swift 3

ios - 如何动态填充屏幕宽度标签?

html - iOS:将大型 HTML 内容拆分为多个水平分页 View

android - 如何创建即使在手机重启后也始终运行的通知?

ios - 包含文件内容的字典在 ios 中不起作用

iOS 用户权限