When a user clicks a control, I can get the x-position of where the user tapped, but I do not know how far off from center s/he is and I cannot determine if the tap is above or below the center of the screen since I have to take into consideration the viewport. Is there a simple way to determine the center of the viewport?
For example, during an event, I determined the user tapped a control at x-position 100. I would like to know were the center of the screen is. If the center is at x=200, then I know the tap is above the center of the screen. How do I determine the center of the viewport? Thanks, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
