Anyone know why Jeff Lamarche's Alert View with prompt class produces a alert that is mostly off screen when used in iOS4? All the code in a downloadable project can be found here:
http://iphonedevelopment.blogspot.com/2009/02/alert-view-with-prompt.html
His sample project out of the box, in the 3.2 simulator (running as an iphone app on an ipad) appears properly centered. But in the 4.0 simulator, both in the iPhone and iPhone 4 devices, it appears very high on the screen and mostly off the screen. I have not tested it yet on other OS's or on an actual device.
By changing the line:
CGAffineTransform translate = CGAffineTransformMakeTranslation(0.0, 130.0);
to:
CGAffineTransform translate = CGAffineTransformMakeTranslation(0.0, 0.0);
it correctly centers in the screen in iOS4 but is then too low on the 3.2. Of course I could adjust the value based on which device or os is in use, but I'd rather know WHY it's off.