1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/legacy/TelegraphKit/UIScrollView+TGHacks.m
2015-10-01 19:19:52 +03:00

28 lines
676 B
Objective-C

#import "UIScrollView+TGHacks.h"
#import <objc/message.h>
@implementation UIScrollView (TGHacks)
- (void)stopScrollingAnimation
{
UIView *superview = self.superview;
NSUInteger index = [self.superview.subviews indexOfObject:self];
[self removeFromSuperview];
[superview insertSubview:self atIndex:index];
/*static SEL selector = NULL;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^
{
selector = NSSelectorFromString(TGEncodeText(@"`tupqTdspmmEfdfmfsbujpoOpujgz;", -1));
});
if (selector != NULL && [self respondsToSelector:selector])
{
objc_msgSend(self, selector, true);
}*/
}
@end