forked from mirrors/linphone-iphone
Make it easier to make zrtp calls
This commit is contained in:
parent
319cc03c85
commit
e8e8506ba3
4 changed files with 10 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue