如何进行移动基板调整(从顶部滑动)通知中心

时间:2012-05-03 15:18:16

标签: jailbreak tweak

我是一名whited00r开发者,我正在为iPhone 2g / 3g创建一个调整WHITED00r用户一个通知系统(NS)我已经做了一个(NSCENTER)但它不是一个真正的调整......

我想做一个移动基板调整,如果你从顶部滑动它会显示调整(激活器),但我不知道如何做到这一点。有人可以帮忙吗?还是样品?或文字帮助?

1 个答案:

答案 0 :(得分:0)

假设我理解正确,您基本上想要更换通知中心滑动手势动作以显示您的调整,对吗?如果是这种情况,SBBulletinListController有您正在寻找的方法:

-(void)handleShowNotificationsGestureBeganWithTouchLocation:(CGPoint)touchLocation;
-(void)handleShowNotificationsGestureChangedWithTouchLocation:(CGPoint)touchLocation velocity:(CGPoint)velocity;
-(void)handleShowNotificationsGestureEndedWithVelocity:(CGPoint)velocity completion:(id)completion;
-(void)handleShowNotificationsGestureCanceled;

您可以尝试Springboard中的相应方法:

-(void)handleShowNotificationsSystemGesture:(id)gesture;
-(void)handleHideNotificationsSystemGesture:(id)gesture;
-(void)_showNotificationsGestureBeganWithLocation:(CGPoint)location;
-(void)_showNotificationsGestureChangedWithLocation:(CGPoint)location velocity:(CGPoint)velocity;
-(void)_showNotificationsGestureEndedWithLocation:(CGPoint)location velocity:(CGPoint)velocity;
-(void)_showNotificationsGestureFailed;
-(void)_showNotificationsGestureCancelled;
-(void)_hideNotificationsGestureBegan:(float)began;
-(void)_hideNotificationsGestureChanged:(float)changed;
-(void)_hideNotificationsGestureEndedWithCompletionType:(int)completionType velocity:(CGPoint)velocity;
-(void)_hideNotificationsGestureCancelled;

尝试使用MobileSubstrate挂钩。我自己没有尝试过,但它应该指向正确的方向。