thermogl / TITokenField

An iOS version of the NSTokenField (See To: field in Mail and Messages).
http://thermoglobalnuclearwar.com/opensource/
599 stars 172 forks source link

placeHolderLabel off by exactly 3 pixels #47

Closed rex-remind101 closed 11 years ago

rex-remind101 commented 11 years ago

The place holder for the tokenfield view is off by three pixels as seen in the example project.

In line 808 of TITokenField.m replace this:

label = [[UILabel alloc] initWithFrame:CGRectMake(_tokenCaret.x, _tokenCaret.y + 2, self.rightView.bounds.size.width, self.rightView.bounds.size.height)];

with this:

label = [[UILabel alloc] initWithFrame:CGRectMake(_tokenCaret.x + 3, _tokenCaret.y + 2, self.rightView.bounds.size.width, self.rightView.bounds.size.height)];

screen shot 2013-06-22 at 11 28 37 am

This: screen shot 2013-06-22 at 11 29 17 am

vs This:

screen shot 2013-06-22 at 11 28 56 am