Hi ArenMook,
I'm using NGUI's OnClick notify field to execute a delegate method on a script attached to a separate GameObject at runtime.
It works great in the editor with both Mouse Clicking and Unity Remote from iPhone 5, but when I build to my device, none of my buttons execute their onClick event.
I have the NGUI Debug option ticked, and it shows that the raycast is hitting the button. The button changes colors, and scales (i also have the UIButtonScale script attached) like it should, but nothing happens.
I'm using XCode 6.1.1, Unity 4.5, and my iPhone 5 has iOS 8.1.1 on it.
Due to an XCode bug right now I am unable to debug on device and get the console output because XCode doesnt seem to want to stay "connected" to the device for debugging to see if it would even execute a simple Debug.Log or to even have a script check the onClick events that are registered for that button and put them out in the console. So I'm at a loss on debugging this right now.
I found an old post from September about a similar issue but the tips you recommended in that thread did not seem to help for me.
I've tried moving the buttons around on the screen to different positions, I've also tries making sure that the button was within the area of its UIRoot.
I should point out that I've seen you post several times while I was looking through this forum about how you should not use more than one UIRoot object in your scene unless its just ONE 2D UI and ONE 3D UI, but unfortunately, due to the requirements of this project, I need multiple 2D UI's in the scene. However, I've tried a scene on my device with only one 2D UI in it, and the buttons are still not working in that.