Misterbates Active Member Licensed User Aug 9, 2017 #1 I love the simplicity of the InputBox class from @Filippo (developed with input from @Erel) https://www.b4x.com/android/forum/threads/class-with-input-dialog.77580/#content Unfortunately, I've encountered a couple of issues when using the class on iOS 8+ and wondered if there were any solutions proposed for these ... The Objective-C code uses UIAlertView which is deprecated from iOS 8+ in favour of UIAlertController. Would it be possible to have the Objective-C updated to use UIAlertController if running under iOS 8+, falling back to UIAlertView if earlier than iOS 8? I get an error about a KeyPlane not being available when using anything apart from 0 as the input type. Any idea what the fix might be to avoid the error I'm assuming it would need to be a fix to the Objective-C. I've used the class by declaring it as an instance in a sub. I'm getting "class released" reports in the log and am as a result unable to retrieve the value I put into the .Tag property of the class. I think this fix for this is to declare the instance as a private global - is this correct? Thanks!
I love the simplicity of the InputBox class from @Filippo (developed with input from @Erel) https://www.b4x.com/android/forum/threads/class-with-input-dialog.77580/#content Unfortunately, I've encountered a couple of issues when using the class on iOS 8+ and wondered if there were any solutions proposed for these ... The Objective-C code uses UIAlertView which is deprecated from iOS 8+ in favour of UIAlertController. Would it be possible to have the Objective-C updated to use UIAlertController if running under iOS 8+, falling back to UIAlertView if earlier than iOS 8? I get an error about a KeyPlane not being available when using anything apart from 0 as the input type. Any idea what the fix might be to avoid the error I'm assuming it would need to be a fix to the Objective-C. I've used the class by declaring it as an instance in a sub. I'm getting "class released" reports in the log and am as a result unable to retrieve the value I put into the .Tag property of the class. I think this fix for this is to declare the instance as a private global - is this correct? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2017 #2 Misterbates said: I get an error about a KeyPlane not being available when using anything apart from 0 as the input type. Any idea what the fix might be to avoid the error I'm assuming it would need to be a fix to the Objective-C. Click to expand... This is only a warning, right? If so then ignore it. I plan to wrap UIAlertController. It will be available soon. Misterbates said: I think this fix for this is to declare the instance as a private global - is this correct? Click to expand... Yes. Upvote 0
Misterbates said: I get an error about a KeyPlane not being available when using anything apart from 0 as the input type. Any idea what the fix might be to avoid the error I'm assuming it would need to be a fix to the Objective-C. Click to expand... This is only a warning, right? If so then ignore it. I plan to wrap UIAlertController. It will be available soon. Misterbates said: I think this fix for this is to declare the instance as a private global - is this correct? Click to expand... Yes.
Misterbates Active Member Licensed User Aug 9, 2017 #3 Erel said: This is only a warning, right? Click to expand... If I call it with anything other than 0 I get the numeric keypad. Calling it with 0 gives me the full keypad, which is the workaround I'm using right now. Upvote 0
Erel said: This is only a warning, right? Click to expand... If I call it with anything other than 0 I get the numeric keypad. Calling it with 0 gives me the full keypad, which is the workaround I'm using right now.