iTunes Application Loader Password Trouble
When trying to submit the snow globe app to iTunes I came by a bug with the Application Loader software. If you're password contains characters that are no letters or numbers it seems to complain.
The only way I found to resolve this was to changing my password to only contain letters and number temporarily.
Retina Resolution
While working on an app to release at Christmas, I realised that I hadn't been using the correct resolution when I took a screen and it was still the ordinary non-retina size.
At first I thought it was something to do with multisampling, but it turns out that the EAGL layer does not automagically resize itself to the correct size when using the iPhone4.
To get it to do this, you just need to set the contentScaleFactor on the UIView that holds the EAGLView.
//eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys:
// [NSNumber numberWithBool:FALSE], kEAGLDrawablePropertyRetainedBacking,
// kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat,
// nil];
if( [[UIScreen mainScreen] respondsToSelector:@selector(scale)] )
{
self.contentScaleFactor = [[UIScreen mainScreen] scale];
}The scale factor can be gotten from the UIScreen, however the scale factor doesn't exist on older SDKs, so if you want to maintain backwards compatibility, wrap it in a respondsToSelector.


