NativeDialogs icon indicating copy to clipboard operation
NativeDialogs copied to clipboard

NativeDatePickerDialog error on iPhone

Open Neverbirth opened this issue 13 years ago • 4 comments

When trying to display a NativeDatePickerDialog on an iPhone, I get the following error:

Invalid parameter not satisfying: view != nil

Neverbirth avatar Feb 23 '13 01:02 Neverbirth

Please try the 9018784cf8 commit and please reply if that helped.

mateuszmackowiak avatar Mar 05 '13 00:03 mateuszmackowiak

The dialog now shows, I've noticed a problem tho, after closing it, I'm not able to touch on controls located on the top part of the screen. I instatiated the control when loading the view and reuse it, will have to try to instatiate it everytime it's needed and dispose it after closing.

Neverbirth avatar Mar 06 '13 16:03 Neverbirth

Not sure why are You facing this errors. In the demo app that is in the repository there is a text input on the top and it is fully responding after all calls of any NativeDialog.

mateuszmackowiak avatar Mar 10 '13 15:03 mateuszmackowiak

Haven't looked at the sample code, but in my original code I was creating the NativeDatePickerDialog each time a view was created, and then showing that same instance each time it was needed. I changed the code to create and dispose the NativeDatePickerDialog every time, and now works properly, but I think it's a shame to have it that way.

Also, on another view I created two NativeListDialogs the same way and experienced problems, only one instance worked as expected, so had to use the same "workaround". Seems like a problem with how the ANEs work and treat memory behind the curtains, because I see nothing wrong with your approach, although I could be wrong.

Neverbirth avatar Mar 10 '13 16:03 Neverbirth