mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
21 lines
500 B
Objective-C
21 lines
500 B
Objective-C
#import "UIScrollView+TGHacks.h"
|
|
|
|
#import <objc/message.h>
|
|
|
|
@implementation UIScrollView (TGHacks)
|
|
|
|
- (void)stopScrollingAnimation
|
|
{
|
|
CGPoint offset = self.contentOffset;
|
|
[self setContentOffset:offset animated:false];
|
|
self.scrollEnabled = false;
|
|
self.scrollEnabled = true;
|
|
|
|
// UIView *superview = self.superview;
|
|
// NSUInteger index = [self.superview.subviews indexOfObject:self];
|
|
// [self removeFromSuperview];
|
|
// [superview insertSubview:self atIndex:index];
|
|
}
|
|
|
|
@end
|