Page 1 of 1

Buttons freeze on iPad and Simulator

Posted: Thu Sep 03, 2015 1:49 am
by Epidexia
I have a stack with several cards. Each card has a number of editable fields (set up using iPhoneControlCreate "input") and one or more scrollable fields. Each card also has a number of transparent buttons that are used to either navigate around the app or to set a status. When I navigate around the various cards everything works fine. I can tap all the buttons and navigate ok.

However, when I tap one of the editable controls all the buttons seem to stop working. I can still swipe or scroll but a tap is no longer recognised. I know the app doesn't freeze because swipe still works (I can even go from one card to another) and I know the database has been updated. In fact I can continue to edit other input controls on the same card or the other card that I can swipe to. I've tried adding an iphoneClearTouches and focus on nothing at the end of the keyboardDeactivated script as well as at endInputEditing.

This problem appears on both iPad and Simulator. The only difference is that on the simulator the keyboard doesn't pop up, otherwise the behaviour is identical. The only way to get back to normal is to shut down the app and start again. This doesn't happen on the dev environment (mac).

This app was working fine with iOS7. I'm now trying to upgrade it to iOS8 so I'm not sure if something fundamental has changed. I'm using L 6.7.5 and Xcode 6.3.

What am I missing here?

TIA

Re: Buttons freeze on iPad and Simulator

Posted: Thu Sep 03, 2015 1:16 pm
by Klaus
Hi Epidexia,

1. welcome to the forum! :D

2. Since this only happens in the simulator:
Are you sure that no "native" text input field is covering your buttons?
Are you sure you delete these native fields when closing a card? -> mobilecontroldelete


Best

Klaus

Re: Buttons freeze on iPad and Simulator

Posted: Fri Sep 04, 2015 12:06 am
by Epidexia
Hi Klaus,

Thank you for responding and your note of welcome :D .

This happens in both simulator and physical iPad.

I am certain there are no native text input fields covering the buttons. The app has most of the buttons on the left third of the card (and/or the bottom 10%). All the input fields are on the top right two thirds of the view.

This is the script that sits on every card;

Code: Select all

on closeCard
   -- remove any native iOS fields
   CLOSECARD_any
end closeCard
This code invokes the following code from the stack;

Code: Select all

on CLOSECARD_any
   -- remove any native iOS fields
   local tControls
   if the environment = "mobile" then
      put iphoneControls() into tControls
      repeat with i = 1 to number of lines of tControls
         mobileControlDelete (line i of tControls)
      end repeat
   end if
end CLOSECARD_any
What surprises me is that both swipe and scroll gestures are still working. So if I have a list sitting on the left hand side, I can scroll up or down but I can't select any of the items from the list! and I can't tap on any buttons either. I actually changed the buttons to visible to make sure they were still there (and they were).

Any other thoughts?

Regards, AA.