uiscrollviewdelegate
- (void)scrollviewdidscroll:(uiscrollview *)scrollview;//scrollview 滾動的時候呼叫該方法,任何 offset 值改變都會呼叫該方法.
- (void)scrollviewdidzoom:(uiscrollview *)scrollview;//縮放的時候呼叫
- (void)scrollviewwillbegindragging:(uiscrollview *)scrollview;//一次有效滾動(只要手指不放開,就算一次有效滾動,呼叫一次
- (void)scrollviewwillenddragging:(uiscrollview *)scrollview withvelocity:(cgpoint)velocity targetcontentoffset:(inout cgpoint *)targetcontentoffset;//一次有效滾動,手指鬆開時呼叫一次
- (void)scrollviewdidenddragging:(uiscrollview *)scrollview willdecelerate:(bool)decelerate;//一次有效滾動,手指離開螢幕時執行一次(decelerate指手指放開時螢幕是否繼續按慣性滾動)
- (void)scrollviewwillbegindecelerating:(uiscrollview *)scrollview;//滑動將要減速
- (void)scrollviewdidenddecelerating:(uiscrollview *)scrollview;//滾動停止
- (void)scrollviewdidendscrollinganimation:(uiscrollview *)scrollview;//滾動檢視動畫完成後呼叫
- (uiview *)viewforzoominginscrollview:(uiscrollview *)scrollview;//縮放檢視
- (void)scrollviewwillbeginzooming:(uiscrollview *)scrollview withview:(nullable uiview *)view;//檢視將要縮放(一次有效縮放只執行一次)
- (void)scrollviewdidendzooming:(uiscrollview *)scrollview withview:(nullable uiview *)view atscale:(cgfloat)scale;//檢視縮放結束
- (bool)scrollviewshouldscrolltotop:(uiscrollview *)scrollview;//使用者點選狀態列時,是否可以滾動到頂部
- (void)scrollviewdidscrolltotop:(uiscrollview *)scrollview; //滾動到頂部時呼叫該方法
uiscrollviewaccessibilitydelegate
- (nsstring *)accessibilityscrollstatusforscrollview:(uiscrollview *)scrollview;//檢視滾動的時候返回乙個自定義的字串
UIScrollViewDelegate 方法比較
end drag 拖 decelerate 減速 開始拖拽時呼叫 void scrollviewwillbegindragging uiscrollview scrollview 正在滑動時呼叫 void scrollviewdidscroll uiscrollview scrollview 開始拖...
UIScrollViewDelegate 方法註解
參考自 scrollview滾動時,就呼叫該方法。任何offset值改變都呼叫該方法。即滾動過程中,呼叫多次 void scrollviewdidscroll uiscrollview scrollview 當scrollview縮放時,呼叫該方法。在縮放過程中,回多次呼叫 void scrollv...
HibernateTemplate相關方法
向資料庫新增一條對應於乙個業務物件例項的記錄 param entity 業務物件例項 public entity create entity entity throws daoexception catch dataacces ception e 向資料庫更新一條對應於乙個業務物件例項的記錄 par...