I am having a similar issue but this great discussion doesnt seem to be solving it for me.
I am using storyboard and have view which contains a background UIImageView and two UIButtons. The buttons are Custom type and each have an image specified as well as a tag. I also have the following function:
@IBAction func touchItem(sender : UIButton) {
print(sender.tag)
}
which is called when the button's Primary Action is Triggered as set up in the Sent Events panel. I was hoping that this would let me confirm that the buttons are working properly. I will not have my dev kit hardware until tomorrow and that may resolve some of this but for the moment I just dont understand what is going on.
Firstly, when I attempt to move the focus between the buttons, no visual indication of which has focus is being displayed. Am I understanding correctly that this is not possible if you are not using a System type? If that is the case, what is the recommended way to make a visual update when a UIButton receives focus?
Secondly, I am seeing the tag value printed when I try to use the simulator's remote but I dont understand why and what is actually causing my function to be called. I am Option clicking and dragging in the ssimulator remote window but it seems I am randomly seeing the tags from both buttons in my console. I thought that my actionwould just move focus. It feels like the 'Primary Action is Trigggered' event is firing when the button gets focus as I dont think I am initiating a button press of any sort. I am hoping that using my ATV hardware will make it a little clearer but if it looks to anyone like I have done something wrong, I would greatly appreciate any input.
Thanks!