简体   繁体   中英

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. 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.

I have tried disabling animations with:
[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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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