0

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

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

4

1 回答 1

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 连接那些。我自己没有尝试过,但它应该为您指明正确的方向。

于 2012-05-06T01:35:35.803 回答