changeset 2433:87669cfe3c92

iOS: Combobox remove code to hide the input caret. Also fix the cancel button.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 05 Apr 2021 22:30:26 +0000
parents 5e0507e67c5d
children 404d9e9f1f08
files ios/dw.m
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ios/dw.m	Mon Apr 05 22:18:19 2021 +0000
+++ b/ios/dw.m	Mon Apr 05 22:30:26 2021 +0000
@@ -2308,15 +2308,10 @@
     if(self)
     {
         [self setDelegate:self];
-       
+
         /* Set UI defaults */
         toolbarStyle = UIBarStyleDefault;
-        
-        /* Hide the caret and its blinking */
-        [[self valueForKey:@"textInputTraits"]
-                  setValue:[UIColor clearColor]
-                    forKey:@"insertionPointColor"];
-        
+
         /* Setup the arrow image */
         UIButton *imageButton = [UIButton buttonWithType:UIButtonTypeCustom];
         UIImage *image = [UIImage systemImageNamed:@"chevron.down"];
@@ -2372,7 +2367,7 @@
 -(void)cancelClicked:(id)sender
 {
     /* Hides the pickerView */
-    [pickerView resignFirstResponder];
+    [self resignFirstResponder];
 }
 -(void)showPicker:(id)sender
 {