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

More customisability. #81

Open alloy opened 10 years ago

alloy commented 10 years ago

I’m looking at creating a PR to make customising the view classes more easy. For my personal requirements I’m going to start out by just adding:

@implementation TITokenFieldView
- (Class)tokenFieldClass;
{
  return [TITokenField class];
}
@end

@implementation TITokenField
- (Class)tokenClass;
{
  return [TIToken class];
}
@end

However, this might not what you want for a PR, as it would always require a user to override both classes to customise the TIToken class. Other options are to:

If you can let me know if and how you would want this to be, then I will submit a PR for that.

thermogl commented 10 years ago

I've always liked the class approach, feel free to submit a pull request along these lines :)