2012-05-03 58 views
0

我是一個whited00r開發人員,我正在爲iPhone 2g/3g WHITEDOOr用戶創建一個調整通知系統(NS)iive已經制作了一個(NSCENTER)但它不是一個真正的調整...如何使移動基板調整(從頂部滑入)通知中心

我想做一個移動襯底調整,如果你從頂部滑動它會顯示調整(激活),但我不知道如何做到這一點。有人可以幫忙嗎?或樣本?或文字幫助?

+0

看看以下網站 http://stackoverflow.com/questions/7224895/how-to-make-notification-center-widgets-ios-5 –

回答

0

假設我正確地理解了你,你基本上想要取代通知中心滑動手勢動作來呈現你的調整,是否正確?如果是這樣的話,SBBulletinListController有你要找的方法:

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

,也有相應的方法,你可以嘗試:

-(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有。我自己並沒有嘗試過,但它應該指向正確的方向。

相關問題