2

所以这就是我正在使用的。我正在尝试摆脱 Three20 框架......但我不确定我应该用什么来替换它:

NSMutableArray *selectedPeople = [[NSMutableArray alloc] init];
NSArray *cells = [textField cells];

for (TTTableTextItem *cell in cells) {
    NSDictionary *person = [textField.dataSource contactInfoAtIndex:[cell.URL integerValue]];
    [selectedPeople addObject:person];
    [AppPreferences incrementContactUsage:[[person objectForKey:@"abId"] intValue]];
}

我有一个文本字段,其实现类似于消息应用程序中的令牌字段视图。(使用 JSTokenField ...我已经用它替换了 TTPickerView)。

我对 iOS 场景还很陌生,我正在做一个旧项目(试图让它摆脱困境)。

提前感谢您的帮助。

4

0 回答 0