ios - (XCODE) TextView : shows bottom of text as first

标签 ios xcode swift scroll textview

我看到了很多类似的问题,但没有答案对我没有帮助。 我有带有静态单元格的表格 View 。每个单元格都与带有 TextView 的 View Controller 连接。每个 TextView 都有长文本,必须滚动。不幸的是,在移动到带有文本的 View 后,我看到文本的底部而不是顶部。

这就是 Storyboard中带有 View Controller 的部分的样子 http://imgur.com/cndYyYV

最佳答案

您在更新 textView 中的文本时尝试过此操作吗?

[textView setContentOffset:CGPointZero animated:YES];

关于ios - (XCODE) TextView : shows bottom of text as first,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35276355/

相关文章:

swift - 为 Ionic 应用程序开发 Cordova 插件时出错,应用程序未使用 Ionic 2 构建 Ios 命令构建,它找不到框架类

ios - 使用 UIWebView 播放视频时出错

iOS 和 Cocos2d : my app REALLY slow on simulator but is FINE on device

objective-c - 使用 setViewControllers 时的过渡样式 :animated: on UINavigationController

ios - Swift 3 中的 AVAudioRecorder : Get Byte stream instead of saving to file

iphone - 如何为 iPhone 5 屏幕分辨率迁移应用程序?

ios - 从右到左动画图像,如幻灯片放映

ios - 如何在不创建 *Cell.swift 文件的情况下访问 UITableViewCell 对象

ios - 搜索 NSData 末尾附近的字节时出现 NSRangeException

iphone - 启动画面后的电影或启动画面作为电影