基本上我有一个带有 UICollectionView 和 UIPickerView 的类设置。正如我现在拥有的那样,当用户单击单元格内的按钮时,选择器会弹出。我要做的是在用户从选择器中选择某些内容时更改文本字段的值。这是我的设置方式,但是当我更改选择器中的值时没有出现任何内容:
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
static NSString *CellIdentifier=@"cell";
activityCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CellIdentifier forIndexPath:indexPath];
UITextView *nameLabel = (UITextView *)[cell viewWithTag:1];
nameLabel.text = [NSString stringWithFormat:@"%@ %@",[arrayHour objectAtIndex:[pickerView selectedRowInComponent:0]], [arrayMinute objectAtIndex:[pickerView selectedRowInComponent:1]]];