I have added one label in my nib file, then its required to have top-left alignment for that lable. As I am providing text at runtime so its not sure that how much lines there are.
So if text contains only single line then it appears as vertical-center aligned. That alignment is not matching with my respective lable in front of it.
For example:
Which is looking odd :(
Is there any way where i can set label text proper to Top-Left alignment?
解决方案
Rather than re-explaining, I will link to this rather extensive & highly rated question/answer:
The short answer is no, Apple didn't make this easy, but it is possible by changing the frame size.