我有UIButton
,我只想将标题的一半涂成红色。这是我的按钮
NSString *title = AMLocalizedString(@"Remove", nil);
NSString *title1 = [NSString stringWithFormat:title, name ];
UIButton *rem = [UIButton buttonWithType:UIButtonTypeRoundedRect];
rem.frame = CGRectMake(140, 70, 175, 40);
[rem setTitle:title1 forState:UIControlStateNormal];
删除是"Remove" = "Delete object %@";
我只想染红色name
我怎样才能做到这一点?