|
@@ -22,6 +22,14 @@
|
22
|
22
|
}
|
23
|
23
|
}
|
24
|
24
|
|
|
25
|
+ if (self.leftSideEnabled) {
|
|
26
|
+ sideMenuController.sideMenu.leftSideEnabled = [self.leftSideEnabled boolValue];
|
|
27
|
+ }
|
|
28
|
+
|
|
29
|
+ if (self.rightSideEnabled) {
|
|
30
|
+ sideMenuController.sideMenu.rightSideEnabled = [self.rightSideEnabled boolValue];
|
|
31
|
+ }
|
|
32
|
+
|
25
|
33
|
[self resetOptions];
|
26
|
34
|
}
|
27
|
35
|
}
|
|
@@ -29,11 +37,15 @@
|
29
|
37
|
-(void)mergeWith:(NSDictionary *)otherOptions {
|
30
|
38
|
self.leftSideVisible = [[otherOptions valueForKey:@"left"] valueForKey:@"visible"];
|
31
|
39
|
self.rightSideVisible = [[otherOptions valueForKey:@"right"] valueForKey:@"visible"];
|
|
40
|
+ self.leftSideEnabled = [[otherOptions valueForKey:@"left"] valueForKey:@"enabled"];
|
|
41
|
+ self.rightSideEnabled = [[otherOptions valueForKey:@"right"] valueForKey:@"enabled"];
|
32
|
42
|
}
|
33
|
43
|
|
34
|
44
|
-(void)resetOptions {
|
35
|
45
|
self.leftSideVisible = nil;
|
36
|
46
|
self.rightSideVisible = nil;
|
|
47
|
+ self.leftSideEnabled = nil;
|
|
48
|
+ self.rightSideEnabled = nil;
|
37
|
49
|
}
|
38
|
50
|
|
39
|
51
|
@end
|