mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Adding ASButtonNode. Simple but flexible, add features as desired!
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
#import "ViewController.h"
|
||||
#import "ScreenNode.h"
|
||||
|
||||
@interface ViewController() {
|
||||
@interface ViewController()
|
||||
{
|
||||
ScreenNode *_screenNode;
|
||||
}
|
||||
|
||||
@@ -28,10 +29,6 @@
|
||||
|
||||
_screenNode = node;
|
||||
|
||||
// tap to reload
|
||||
UITapGestureRecognizer *gr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(reload:)];
|
||||
[_screenNode.textNode.view addGestureRecognizer:gr];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -42,10 +39,6 @@
|
||||
[super viewWillAppear:animated];
|
||||
}
|
||||
|
||||
- (void)reload:(id)sender {
|
||||
[_screenNode reload];
|
||||
}
|
||||
|
||||
- (BOOL)prefersStatusBarHidden
|
||||
{
|
||||
return YES;
|
||||
|
||||
Reference in New Issue
Block a user