Label shows text perfectly in portrait mode.
It also works properly when device rotates from portrait to landscape or landscape to portrait.
But when i open app in landscape mode it shows extra spaces before and after the text.
I have used NumberOfLines = 0
and sizeToFit
.
and also tried
CGSize aSize = [self.label sizeThatFits:CGSizeMake(self.label.frame.size.width, CGFLOAT_MAX)];
self.label.frame = CGRectMake(self.label.frame.origin.x, self.label.frame.origin.y, self.label.frame.size.width, aSize.height);
You can check image here: http://picpaste.com/Screen_Shot_2014-02-14_at_4.44.42_PM-7I55uWNF.png