IOS center bottom position view

Posted by Ben_hawk on Stack Overflow See other posts from Stack Overflow or by Ben_hawk
Published on 2012-10-30T10:33:47Z Indexed on 2012/10/30 11:02 UTC
Read the original article Hit count: 183

Filed under:
|
|
|

I do the following to a loading animation, to place it at the bottom center of the screen.

CGPoint bottomCenter = CGPointMake((self.imageView.bounds.size.width / 2), (self.imageView.bounds.size.height * 0.8));
self.activityView.center = bottomCenter;

(imageView is the full screen splash image)

If the orientation is portrait, it is positioned perfectly, however turning on its side, in landscape or upside down portrait and the animation ends up miles away :S

Does anyone know the correct way to position this loading animation, its for the splash screen.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios