I have a view controller with a picker  "bound" to a textbox using
"InputView.  Also a tab bar with a button is "bound" to the text box using
"InputAccessoryView"

When the text box is selected, the picker displays and closes when a tab bar
button is clicked.

Both the picker and tabbar( and its button ) are not in the view's content
area.


1) This works OK.

                        // Link textbox to picker
                        
                        txtPlayers.InputView = dPickerPlayers;        // Bind 
picker
                        txtPlayers.InputAccessoryView = tbClose;    // Bind 
tabbar and button
                        
                        // Close picker  
                        
                        txtPlayers.TouchDown += (sender, e) => {
                                
                                // Debug msg 1
                                Console.WriteLine( "Debug: Touchdown" );
                                
                                // btnClose is associated with the tabbar
                                this.btnClose.Clicked += (sender2, e2) => {
                                
                                        // Debug msg 2
                                        Console.WriteLine( "Debug: Close Picker 
Button" );
                                
                                        txtPlayers.ResignFirstResponder();
                                };
                        };

2) BUT - If a UIScrollView is first added and the textfield added to the
UIScrollView:

With the same code, the picker opens, the text field is updated with the
picker value 
BUT the "this.btnClose.Clicked" code is not executed ( no console debug
messages ).


Any insight is appreciated.  Thx



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/UIScrollView-Can-Not-dismiss-UIPickerView-tp4656467.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to