Make it easier to make zrtp calls

This commit is contained in:
Danmei Chen 2019-04-23 18:24:17 +02:00
parent 319cc03c85
commit e8e8506ba3
4 changed files with 10 additions and 2 deletions

View file

@ -7,7 +7,7 @@
#import <UIKit/UIKit.h>
@interface UIDeviceCell : UITableViewCell
@interface UIDeviceCell : UITableViewCell <UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *deviceLabel;
@property (weak, nonatomic) IBOutlet UIButton *securityButton;

View file

@ -35,6 +35,10 @@
}
self.selectionStyle =UITableViewCellSelectionStyleNone;
UITapGestureRecognizer *particpantsBarTap = [[UITapGestureRecognizer alloc] initWithTarget:self
action:@selector(onSecurityCallClick:)];
particpantsBarTap.delegate = self;
[self addGestureRecognizer:particpantsBarTap];
}
- (IBAction)onSecurityCallClick:(id)sender {

View file

@ -7,7 +7,7 @@
#import <UIKit/UIKit.h>
@interface UIDevicesDetails : UITableViewCell <UITableViewDelegate, UITableViewDataSource>
@interface UIDevicesDetails : UITableViewCell <UITableViewDelegate, UITableViewDataSource, UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet UIButton *dropMenuButton;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;

View file

@ -33,6 +33,10 @@
[_securityButton setImage:image forState:UIControlStateNormal];
_securityButton.hidden = FALSE;
_dropMenuButton.hidden = TRUE;
UITapGestureRecognizer *particpantsBarTap = [[UITapGestureRecognizer alloc] initWithTarget:self
action:@selector(onSecurityCallClick:)];
particpantsBarTap.delegate = self;
[self addGestureRecognizer:particpantsBarTap];
} else {
UIImage *image = listOpen ? [UIImage imageNamed:@"chevron_list_open"] : [UIImage imageNamed:@"chevron_list_close"];
[_dropMenuButton setImage:image forState:UIControlStateNormal];