I have UIView
that isn't big as the whole screen and I want it to appear in the middle of the screen. I did that with the following code:
self.dialogView.center = CGPointMake(self.view.bounds.size.width / 2.0, self.view.bounds.size.height / 2.0);
Unfortunately, when I center it like that, UIView
's content appears blurry.
I've fixed it with this:
self.dialogView.center = CGPointMake(self.view.bounds.size.width / 2.0 + 0.5, self.view.bounds.size.height / 2.0);
Now UIView's content appears as it should :)
Can you tell me why that content becomes blurry and why I need to add 0.5 to the left position offset?