Nested View -> ScrollView ->View, Buttons not responding

JonShanksJonShanks GBMember
edited July 2015 in Xamarin.iOS

Hi

I rebuild my one viewcontroller to have the structure shown below so that I could get the content to move up when the keyboard appears using the solution described at http://forums.xamarin.com/discussion/4994/is-there-something-in-xamarin-for-auto-scrolling-when-keyboard-show-and-hide.

I originally only had a ViewController->View->View which was working fine but with the new structure below the main issue I am having is that the buttons are not responding to touches. The Entry/Text boxes respond fine though, they bring up the keyboard.

I have added my code for the TouchUpInside events into my ViewControllers subclass file.

Structure

ViewController
----|__ View
----------|_ Scrollview
------------------ |_ View
-----------------------|_ UIImageView
--------------------------UILabel
--------------------------View
----------------------------|_ SegmentedButton (Works)
-------------------------------Entry #1 (Works)
-------------------------------Entry #2 (Works)
-------------------------------Entry #3 (Works)
-------------------------------UIButton #1 (Does not respond to TouchUpInside)
-------------------------------UIButton #2 (Does not respond to TouchUpInside)

Tagged:

Answers

  • JonShanksJonShanks GBMember
    edited July 2015

    Oddly, adding a new, 3rd button seems to respond.

    Deleted the old buttons and recreated them but issue persists.

  • adamkempadamkemp USInsider, Developer Group Leader mod

    Create a reduced example project that reproduces the issue and attach it here.

  • JonShanksJonShanks GBMember

    Nevermind, sorted it. Thanks

Sign In or Register to comment.