私はアプリを作っています.2つUITextView
を2つの異なるUIPickerView
.
私のコード
controller.h
UIPickerView *inputType;
UIPickerView *inputFormat;
コントローラー.m
inputFormat=[[UIPickerView alloc] initWithFrame:CGRectZero];
inputType=[[UIPickerView alloc] initWithFrame:CGRectZero];
txtFormat.inputView=inputFormat;
txtType.inputView=inputType;
私の問題は今来る:
ピッカーにさまざまなデータを入力したいのですが、その方法がわかりません。
データソースを 1 つのピッカーに設定する方法は知っていますが、2 つには設定できません。
どうすればいいですか?