-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathMenuIconTableViewCell.m
52 lines (34 loc) · 1.46 KB
/
MenuIconTableViewCell.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// MenuIconTableViewCell.m
// hn
//
// Created by Marcin Kmieć on 14.03.2015.
// Copyright (c) 2015 Marcin. All rights reserved.
//
#import "MenuIconTableViewCell.h"
#import "UIButton+Extension.h"
#import "SVWebViewController.h"
@implementation MenuIconTableViewCell
- (void)awakeFromNib {
[self.contactDeveloperButton setHitTestEdgeInsets:UIEdgeInsetsMake(0.0, 0.0, -30.0, 0.0)];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
- (IBAction)menuIconVisibilitySwitchValueChanged:(id)sender {
if( [self.menuIconVisibilitySwitch isOn] ){
[[NSNotificationCenter defaultCenter] postNotificationName:@"ShowMenuButton" object:self];
[[NSUserDefaults standardUserDefaults] setObject:@0 forKey:@"menuButtonPermanentlyHidden"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
else{
[[NSNotificationCenter defaultCenter] postNotificationName:@"HideMenuButton" object:self];
[[NSUserDefaults standardUserDefaults] setObject:@1 forKey:@"menuButtonPermanentlyHidden"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
- (IBAction)contactDeveloperButtonPressed:(id)sender {
[[NSNotificationCenter defaultCenter] postNotificationName:@"ShowDeveloperContactDetails" object:self];
}
@end