|
@@ -102,12 +102,12 @@
|
|
self.textFiledView.delegate = self;
|
|
self.textFiledView.delegate = self;
|
|
[self.scrcollView addSubview:self.textFiledView];
|
|
[self.scrcollView addSubview:self.textFiledView];
|
|
|
|
|
|
- self.hideFormView = [[CPDFFormSwitchView alloc] init];
|
|
|
|
- self.hideFormView.delegate = self;
|
|
|
|
- self.hideFormView.titleLabel.font = [UIFont boldSystemFontOfSize:13.0];
|
|
|
|
- self.hideFormView.titleLabel.textColor = [UIColor colorWithRed:153/255. green:153/255. blue:153/255. alpha:1];
|
|
|
|
- self.hideFormView.titleLabel.text = NSLocalizedString(@"Hide The Field", nil);
|
|
|
|
- [self.scrcollView addSubview:self.hideFormView];
|
|
|
|
|
|
+// self.hideFormView = [[CPDFFormSwitchView alloc] init];
|
|
|
|
+// self.hideFormView.delegate = self;
|
|
|
|
+// self.hideFormView.titleLabel.font = [UIFont boldSystemFontOfSize:13.0];
|
|
|
|
+// self.hideFormView.titleLabel.textColor = [UIColor colorWithRed:153/255. green:153/255. blue:153/255. alpha:1];
|
|
|
|
+// self.hideFormView.titleLabel.text = NSLocalizedString(@"Hide The Field", nil);
|
|
|
|
+// [self.scrcollView addSubview:self.hideFormView];
|
|
|
|
|
|
self.multiLineView = [[CPDFFormSwitchView alloc] init];
|
|
self.multiLineView = [[CPDFFormSwitchView alloc] init];
|
|
self.multiLineView.delegate = self;
|
|
self.multiLineView.delegate = self;
|
|
@@ -258,13 +258,13 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (void)updatePreferredContentSizeWithTraitCollection:(UITraitCollection *)traitCollection {
|
|
- (void)updatePreferredContentSizeWithTraitCollection:(UITraitCollection *)traitCollection {
|
|
- self.preferredContentSize = CGSizeMake(self.view.bounds.size.width, traitCollection.verticalSizeClass == UIUserInterfaceSizeClassCompact ? 350 : 660);
|
|
|
|
|
|
+ self.preferredContentSize = CGSizeMake(self.view.bounds.size.width, traitCollection.verticalSizeClass == UIUserInterfaceSizeClassCompact ? 310 : 620);
|
|
}
|
|
}
|
|
|
|
|
|
- (void)viewWillLayoutSubviews {
|
|
- (void)viewWillLayoutSubviews {
|
|
[super viewWillLayoutSubviews];
|
|
[super viewWillLayoutSubviews];
|
|
self.scrcollView.frame = CGRectMake(0, 60, self.view.frame.size.width, self.view.frame.size.height-60);
|
|
self.scrcollView.frame = CGRectMake(0, 60, self.view.frame.size.width, self.view.frame.size.height-60);
|
|
- self.scrcollView.contentSize = CGSizeMake(self.view.frame.size.width, 820);
|
|
|
|
|
|
+ self.scrcollView.contentSize = CGSizeMake(self.view.frame.size.width, 680);
|
|
self.scrcollView.showsVerticalScrollIndicator = NO;
|
|
self.scrcollView.showsVerticalScrollIndicator = NO;
|
|
|
|
|
|
|
|
|
|
@@ -277,8 +277,8 @@
|
|
self.fontAlignView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.fontSettingView.frame)+8, self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 48);
|
|
self.fontAlignView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.fontSettingView.frame)+8, self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 48);
|
|
self.sizeThickNessView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.fontAlignView.frame)+8,self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 82);
|
|
self.sizeThickNessView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.fontAlignView.frame)+8,self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 82);
|
|
self.inputTextView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.sizeThickNessView.frame)+8, self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 120);
|
|
self.inputTextView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.sizeThickNessView.frame)+8, self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 120);
|
|
- self.hideFormView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.inputTextView.frame) + 8,self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 44);
|
|
|
|
- self.multiLineView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.hideFormView.frame) + 8,self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 44);
|
|
|
|
|
|
+// self.hideFormView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.inputTextView.frame) + 8,self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 44);
|
|
|
|
+ self.multiLineView.frame = CGRectMake(self.view.safeAreaInsets.left, CGRectGetMaxY(self.inputTextView.frame) + 8,self.view.frame.size.width - self.view.safeAreaInsets.left - self.view.safeAreaInsets.right, 44);
|
|
|
|
|
|
} else {
|
|
} else {
|
|
self.textFiledView.frame = CGRectMake(0, 8, self.view.bounds.size.width, 60);
|
|
self.textFiledView.frame = CGRectMake(0, 8, self.view.bounds.size.width, 60);
|
|
@@ -289,8 +289,8 @@
|
|
self.fontAlignView.frame = CGRectMake(0, CGRectGetMaxY(self.fontSettingView.frame)+8, self.view.frame.size.width, 48);
|
|
self.fontAlignView.frame = CGRectMake(0, CGRectGetMaxY(self.fontSettingView.frame)+8, self.view.frame.size.width, 48);
|
|
self.sizeThickNessView.frame = CGRectMake(0, CGRectGetMaxY(self.fontAlignView.frame)+8, self.view.frame.size.width, ((self.view.frame.size.height)/9)*2);
|
|
self.sizeThickNessView.frame = CGRectMake(0, CGRectGetMaxY(self.fontAlignView.frame)+8, self.view.frame.size.width, ((self.view.frame.size.height)/9)*2);
|
|
self.inputTextView.frame = CGRectMake(0, CGRectGetMaxY(self.sizeThickNessView.frame)+8, self.view.frame.size.width, 120);
|
|
self.inputTextView.frame = CGRectMake(0, CGRectGetMaxY(self.sizeThickNessView.frame)+8, self.view.frame.size.width, 120);
|
|
- self.hideFormView.frame = CGRectMake(0, CGRectGetMaxY(self.inputTextView.frame) + 8, self.view.frame.size.width, 44);
|
|
|
|
- self.multiLineView.frame = CGRectMake(0, CGRectGetMaxY(self.multiLineView.frame) + 8, self.view.frame.size.width, 44);
|
|
|
|
|
|
+// self.hideFormView.frame = CGRectMake(0, CGRectGetMaxY(self.inputTextView.frame) + 8, self.view.frame.size.width, 44);
|
|
|
|
+ self.multiLineView.frame = CGRectMake(0, CGRectGetMaxY(self.inputTextView.frame) + 8, self.view.frame.size.width, 44);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|