Table View에 STHorizontalPicker 오픈 소스 코드를 구현하려고합니다. XCode 4.6.2를 사용하고 있습니다. 나는 석영 코어 프레임 워크를 가져온과 cellForRowAtIndexPath:(NSIndexPath *)indexPath
iOS에서 STHorizontalPicker 구현 관련 문제
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
STHorizontalPicker *horizontalPickerView = [[STHorizontalPicker alloc] initWithFrame:cell.frame];
horizontalPickerView.name = @"myPicker";
[horizontalPickerView setMinimumValue:0.0];
[horizontalPickerView setMaximumValue:100.0];
[horizontalPickerView setSteps:100];
[horizontalPickerView setDelegate:self];
[horizontalPickerView setValue:50.0];
cell.textLabel.text = [myArray objectAtIndex:indexPath.row];
return cell;
}
귀하의 질문은 무엇입니까? – limon
가로 피커보기를 표시 할 수 없습니다. 나는 하위 뷰를 추가하여 피커 뷰를 표시해야한다고 생각하지만 그 방법을 모른다. – Shreek
'[cell.contentView addSubview : horizontalPickerView]'시도 했습니까 – limon