@@ -252,7 +252,7 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
if indexPath.section == 0 {
return 100
} else {
- return 50
+ return NCGlobal.shared.heightCellSettings
}
@@ -86,6 +86,9 @@ class NCGlobal: NSObject {
@objc let introLogin: Int = 0
let introSignup: Int = 1
+ // Varie height
+ @objc let heightCellSettings: CGFloat = 50
+
// Avatar & Preview size
//
let avatarSize: Int = 512
@@ -351,9 +351,7 @@
-#pragma --------------------------------------------------------------------------------------------
-#pragma mark === Clear Cache ===
+#pragma mark - Clear Cache
- (void)clearCache
{
@@ -412,9 +410,7 @@
[self presentViewController:alertController animated:YES completion:nil];
-#pragma mark == Exit Nextcloud ==
+#pragma mark - Exit Nextcloud
- (void)exitNextcloud:(XLFormRowDescriptor *)sender
@@ -452,4 +448,10 @@
+#pragma mark -
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
+ return NCGlobal.shared.heightCellSettings;
+}
@end
@@ -455,7 +455,7 @@
if (indexPath.section == 0) {
return 60;
- return 40;
@@ -446,6 +446,10 @@
self.form.delegate = self;
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
tableAccount *activeAccount = [[NCManageDatabase shared] getActiveAccount];
@@ -215,4 +215,10 @@ class NCManageAutoUploadFileName: XLFormViewController {
return String(format: NSLocalizedString("_preview_filename_", comment: ""), "MM,MMM,DD,YY,YYYY and HH,hh,mm,ss,ampm") + ":" + "\n\n" + returnString
+ // MARK: -
+ override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
+ }
@@ -210,9 +210,7 @@
[[self navigationController] popViewControllerAnimated:YES];
-#pragma mark === Action ===
+#pragma mark - Action
- (void)startE2E:(XLFormRowDescriptor *)sender
@@ -403,9 +401,7 @@
}];
-#pragma mark === Delegate ===
+#pragma mark - Delegate
- (void)endToEndInitializeSuccess
@@ -415,4 +411,10 @@
[self initializeForm];
@@ -394,6 +394,10 @@
#pragma mark -
NSString *sectionName;