Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/94.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IOS 5.0越狱如何自定义/阻止横幅通知_Ios_Notifications_Jailbreak_Customization_Banner - Fatal编程技术网

IOS 5.0越狱如何自定义/阻止横幅通知

IOS 5.0越狱如何自定义/阻止横幅通知,ios,notifications,jailbreak,customization,banner,Ios,Notifications,Jailbreak,Customization,Banner,我想知道,在iOS 5中,为了定制或阻止横幅通知,我必须挂入什么标题/函数?到目前为止,我已经尝试了很多功能,但它们似乎都不起作用了 非常感谢您的帮助 谢谢 尝试在SBBulletinBannerController中挂接-(void)\u presentBannerForItem:(id)arg1方法。如果您使用的是Theos,那么下面的代码段应该会阻止显示横幅通知。要获得更多控制,请查看此类中的其他方法 #import <SpringBoard/SpringBoard.h> %

我想知道,在iOS 5中,为了定制或阻止横幅通知,我必须挂入什么标题/函数?到目前为止,我已经尝试了很多功能,但它们似乎都不起作用了

非常感谢您的帮助

谢谢

尝试在SBBulletinBannerController中挂接-(void)\u presentBannerForItem:(id)arg1方法。如果您使用的是Theos,那么下面的代码段应该会阻止显示横幅通知。要获得更多控制,请查看此类中的其他方法

#import <SpringBoard/SpringBoard.h>

%hook SBBulletinBannerController

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

}
%end
#导入
%钩形SBBulletinBannerController
-(无效)\u presentBannerForItem:(id)arg1
{
%日志;
}
%结束
尝试挂接-(void)\u presentBannerForItem:(id)SBBulletinBannerController中的arg1方法。如果您使用的是Theos,那么下面的代码段应该会阻止显示横幅通知。要获得更多控制,请查看此类中的其他方法

#import <SpringBoard/SpringBoard.h>

%hook SBBulletinBannerController

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

}
%end
#导入
%钩形SBBulletinBannerController
-(无效)\u presentBannerForItem:(id)arg1
{
%日志;
}
%结束

Hey rajagp,谢谢您的回复。我试过你的建议,但没用。我想知道我是否有不同的头文件的跳板。我的参数不是“arg1”,而是“item”。你能把你的springboard头文件寄给我吗?那太好了!!嘿,拉贾普,谢谢你的回复。我试过你的建议,但没用。我想知道我是否有不同的头文件的跳板。我的参数不是“arg1”,而是“item”。你能把你的springboard头文件寄给我吗?那太好了!!