2012-10-19 55 views

回答

1

確保您的UILabel是左對齊:

yourLabel.textAlignment = UITextAlignmentLeft; 

或做在IB,如果你正在使用它。

+0

我在IOS6編碼在這裏我使用txtlabel_custom.textAlignment = NSTextAlignmentLeft;但仍然會發生 –

+0

hmm您確定sqllite數據不包含空格(使用nslog或調試器) –

+0

'UITextAlignmentLeft'在iOS 8中已被棄用。 – yvanscher