久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

iOS:當鍵盤出現時禁用 UITableView 動畫

iOS: Disable UITableView animation when keyboard shows up(iOS:當鍵盤出現時禁用 UITableView 動畫)
本文介紹了iOS:當鍵盤出現時禁用 UITableView 動畫的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

每個人都想在鍵盤彈出時移動 UITableView,但我正在尋找一種方法來禁用鍵盤彈出時對光標的自動動畫.當鍵盤彈出并導致 UITableView 滾動到光標(以避免阻止它)時,我遇到了奇怪的抽搐/搖晃/不穩定的滾動行為.

Everyone wants to move the UITableView when the keyboard pops up, but I'm looking for a way to disable the automatic animation to the cursor when the keyboard pops up. I'm experiencing an odd jerking / jolting / erratic scrolling behavior when the keyboard pops up and causes the UITableView to scroll to the cursor (to avoid blocking it).

我的每個 UITableView 單元格中都有一個 UITextView.鍵盤彈出時我沒有提交任何其他動畫.

Each of my UITableView cells has a UITextView in it. I don't commit any other animations when the keyboard pops up.

此時,我想完全禁用動畫并手動滾動到所需的 CGPoint.

At this point, I would like to disable the animation completely and manually scroll to a desired CGPoint.

謝謝!

推薦答案

自動滾動代碼駐留在tableViewController中,所以不能禁用自動滾動.您可以從 UIViewController 子類化并在其中使用 tableView,而不是從 UITableViewController 子類化.如果你愿意使用 UITableViewController 本身,你可以重寫 viewWillAppear 并且不要調用 [super viewWillAppear].

The automatic scrolling code resides in tableViewController, so auto-scrolling can't be disabled. Instead of subclassing from UITableViewController you can subclass from UIViewController and use a tableView inside it. If you are willing to use UITableViewController itself, you can override viewWillAppear and don't call [super viewWillAppear].

這篇關于iOS:當鍵盤出現時禁用 UITableView 動畫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to draw stars using Quartz Core?(如何使用 Quartz Core 繪制星星?)
Why does giving addArcWithCenter a startAngle of 0 degrees make it start at 90 degrees?(為什么給 addArcWithCenter 一個 0 度的 startAngle 使它從 90 度開始?)
Find the CGPoint on a UIView rectangle intersected by a straight line at a given angle from the center point(在與中心點成給定角度的直線相交的 UIView 矩形上找到 CGPoint)
Which is the best way to estimate measure of photographed things?(哪種方法是估計拍攝物體尺寸的最佳方法?)
How to convert an Int to a Character in Swift(如何在 Swift 中將 Int 轉換為字符)
How to create a hex color string UIColor initializer in Swift?(如何在 Swift 中創建十六進制顏色字符串 UIColor 初始化程序?)
主站蜘蛛池模板: 国产成人99久久亚洲综合精品 | 亚洲精品久久久一区二区三区 | 成人精品鲁一区一区二区 | 九九九久久国产免费 | 久久乐国产精品 | www.婷婷 | 久久综合一区 | 不卡一二三区 | 欧美一区二区三区小说 | 欧美一区二区免费 | 麻豆视频在线免费观看 | 一级毛片免费 | 91久久国产综合久久 | 99热.com | 亚洲美乳中文字幕 | www.色综合| 免费a级毛片在线播放 | 美女日批免费视频 | www.99re| 久草视频观看 | 久久久久久综合 | 日韩中文字幕一区二区 | 成人在线视频一区 | 青青草社区 | 国产精品资源在线 | 欧美日韩成人影院 | 黄a在线播放 | 国产一在线观看 | 日韩欧美手机在线 | 国产精品成人一区二区三区夜夜夜 | 在线国产一区 | 在线播放国产一区二区三区 | 91欧美精品成人综合在线观看 | 久久久综合精品 | 亚洲一区二区三区在线视频 | 国产精品一区二区三区久久 | www.色综合 | 欧美精品一区久久 | 久久69精品久久久久久久电影好 | 日韩精品成人网 | 国产精品成人久久久久 |