Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

button.onclick trigger twice on ios device

$
0
0
Forgive my poor english……
I have found a strange problem, as the title said up.
The problem happened when the "applicationWillResignActive" method was triggered in "onclick" callback, example:

Code (CSharp):
  1.  
  2. public void OnButtonClick()
  3. {
  4.     Debug.Log("Button Click!");
  5. }
  6.  
now it is fine, when i click the button, the log print once. then i changed it to

Code (CSharp):
  1.  
  2. public void OnButtonClick()
  3. {
  4.     Debug.Log("Button Click!");...
button.onclick trigger twice on ios device

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>