简体   繁体   English

iOS UITextView滚动问题

[英]iOS UITextView Scrolling Issue

I am currently developing a terminal-emulator app for the iPad platform, and am wondering how I can go about removing scrolling-animations from my TextView to make it look and feel like a terminal similar to an old teletype terminal such as the HP700. 我目前正在为iPad平台开发一个终端仿真器应用程序,并且想知道如何才能从TextView中删除滚动动画,使其看起来和感觉都类似于旧的电传打字机终端,例如HP700。 I want the TextView to maintain an 80x24 character format while scrolling through the text, so the lines "snap" into position rather than smoothly "floating" around like a normal TextView would. 我希望TextView在滚动文本时保持80x24字符格式,因此这些行“对齐”到位,而不是像普通TextView那样平滑地“浮动”。

I have tried disabling animations with: 我尝试用以下方式禁用动画:
[UIView setAnimationsEnabled:NO]; [UIView setAnimationsEnabled:NO];

But nothing seems to work.... 但是似乎没有任何效果。

I would look at implementing the following properties 我将看一下实现以下属性

@property(nonatomic) float decelerationRate
@property(nonatomic) BOOL bounces

That should get you started on the proper course. 那应该使您开始正确的课程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM