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

iOS:當(dāng)鍵盤出現(xiàn)時禁用 UITableView 動畫

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

問題描述

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

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 并且不要調(diào)用 [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].

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

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

相關(guān)文檔推薦

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 轉(zhuǎn)換為字符)
How to create a hex color string UIColor initializer in Swift?(如何在 Swift 中創(chuàng)建十六進制顏色字符串 UIColor 初始化程序?)
主站蜘蛛池模板: 福利视频二区 | 九九爱这里只有精品 | 色网站在线 | 亚洲一一在线 | 国产福利精品一区 | 在线国产精品一区 | 亚洲综合热 | 免费观看一级特黄欧美大片 | 成人激情视频在线播放 | 日韩av看片 | 一区二区伦理电影 | 韩日在线视频 | 在线观看成年人视频 | 亚洲欧美日韩国产综合 | 韩国av电影网 | 久久精品网| 免费在线一区二区 | 日韩中文字幕在线视频观看 | 久久aⅴ乱码一区二区三区 亚洲欧美综合精品另类天天更新 | 日本天天操 | 伊人伊成久久人综合网站 | 国产偷久久一级精品60部 | 日韩av高清在线 | 免费观看黄色片视频 | 美女天堂在线 | 91社区在线观看播放 | 在线看av网址 | 亚洲免费网 | 福利片在线观看 | 日韩成人av在线 | 国产成人综合一区二区三区 | 99久久精品免费看国产高清 | 成人国产精品久久 | 国产精品久久久久久久久久99 | 亚洲精品资源 | 国产一级黄色网 | 国产综合精品一区二区三区 | 国产免费色 | 99精品热视频 | 国产精品久久久久久久久久不蜜臀 | www.久久精品视频 |