UIImageView Is Moving View to 0,0
Today I had weird problem while creating one iPhone application.
I have created one UIView and added one UIImageView to it and loaded it with Default.png image, but when starting the program whole view is moved up for 20px, it’s y reference is starting from 0 instead from 20, so here is how to fix it easily.
In application didFinishLaunching delegate add following code before [window makeKeyAndVisible]; and after [window addSubview:yourView];
1 2 3 4 5 6 7 8