add switch for attachWatermark
This commit is contained in:
1 parent
81c04bc2b2
commit
b106e60880
1 file changed
+2
@@ -1004,6 +1004,7 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
- (void)attachWaterMark {
|
- (void)attachWaterMark {
|
||||||
// Create and configure the label
|
// Create and configure the label
|
||||||
|
if(true){
|
||||||
[self->waterMark removeFromSuperview];
|
[self->waterMark removeFromSuperview];
|
||||||
self->waterMark = [[UILabel alloc] init];
|
self->waterMark = [[UILabel alloc] init];
|
||||||
self->waterMark.translatesAutoresizingMaskIntoConstraints = NO;
|
self->waterMark.translatesAutoresizingMaskIntoConstraints = NO;
|
||||||
@@ -1026,6 +1027,7 @@ static NSMutableSet* hostList;
|
|||||||
[self->waterMark.widthAnchor constraintEqualToConstant:500], // Sets the width of label to 200 points
|
[self->waterMark.widthAnchor constraintEqualToConstant:500], // Sets the width of label to 200 points
|
||||||
[self->waterMark.heightAnchor constraintEqualToConstant:60] // Sets the height of label to 50 points
|
[self->waterMark.heightAnchor constraintEqualToConstant:60] // Sets the height of label to 50 points
|
||||||
]];
|
]];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (bool)isIphone{
|
- (bool)isIphone{
|
||||||
|
|||||||
Reference in new issue
Block a user