zyavrik
zyavrik
It's a pity. Will anybody fix it?
Does it affect if user inserts a new line?
Why there is no this issue on QED Solver for iPhone? Does it use something else instead CYRTextView?
The is no line number on the last line when the issue occurs.
The fix was added here: https://github.com/illyabusigin/CYRTextView/issues/20
Also it can be found here: http://stackoverflow.com/questions/24104234/syntax-highlighting-with-attributed-strings-on-uitextview/24109468#24109468
The initial issue and correct fix for iOS 7.x are described here: http://stackoverflow.com/questions/22315755/ios-7-1-uitextview-still-not-scrolling-to-cursor-caret-after-new-line?lq=1 On iOS 8 the issue is fixed.
Another solution can be found here: https://github.com/steipete/PSPDFTextView/blob/master/PSPDFTextView/PSPDFTextView.m
Most correct fix: ``` #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) #define is_iOS7 SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0") #define is_iOS8 SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0") @implementation CYRTextView { ...old code... BOOL settingText; } - (id)initWithFrame:(CGRect)frame {...
Boyeen, did you fix the issue with large files?