views:

146

answers:

2

I have taken over the development and maintenance of a production iOS application being used mostly on the iPhone but also on the iPad. We found a specific UIButton that will respond as expected on the iPhone (device & simulator) but does not respond on the iPad (device & simulator).

I am lost on where to start debugging this item. Any suggestion? Thanks in advance.

A: 

Same here! I have been working on an iPhone app (which works perfectly) and thought i'd try it on the iPad this evening. Well, the UIButton that I have in a custom tableView cell does not respond when running the very same app on the iPad (device and sim). I'll keep debugging on this end and let you know if I come up with something. If you do in the meantime, please let me know.

Stu Gisburne
A: 

So it looks like this one was pretty easy for me.

[self.view bringSubviewToFront: button]; //moves the button above other subviews
[button setNeedsDisplay]; //ensure the button is redrawn

I am still not sure why this only happens when running on an iPad, but this fixed my problem.

JWD