diff options
Diffstat (limited to 'Source/SPTableTextFieldCell.m')
-rw-r--r-- | Source/SPTableTextFieldCell.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTableTextFieldCell.m b/Source/SPTableTextFieldCell.m index d08486bb..bcfa0138 100644 --- a/Source/SPTableTextFieldCell.m +++ b/Source/SPTableTextFieldCell.m @@ -35,9 +35,9 @@ // Construct and get the sub text attributed string NSAttributedString *string = [self attributedStringValue]; - int i; - float maxWidth = cellFrame.size.width; - float stringWidth = [string size].width; + NSInteger i; + CGFloat maxWidth = cellFrame.size.width; + CGFloat stringWidth = [string size].width; // Set a right padding maxWidth -= 5; |