fixed 'unsafe' requests and can now click stuff

This commit is contained in:
Diego Waxemberg
2018-08-26 01:15:53 -07:00
parent 71e0646659
commit eadcf3b3eb
4 changed files with 35 additions and 20 deletions

View File

@@ -77,7 +77,7 @@ static const int LABEL_DY = 20;
UILongPressGestureRecognizer* longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(hostLongClicked)];
[_hostButton addGestureRecognizer:longPressRecognizer];
[_hostButton addTarget:self action:@selector(hostClicked) forControlEvents:UIControlEventTouchUpInside];
[_hostButton addTarget:self action:@selector(hostClicked) forControlEvents:UIControlEventPrimaryActionTriggered];
[self updateContentsForHost:host];
[self updateBounds];