2012-03-21 12 views
2

これは私の実装です。私は基本的にアクションシートとピッカービューをオンザフライで作成しています。問題は、選択したアイテムが表示されていないことを示すインジケータです。あなたはこの行欠けているように見えますアクションシート内のピッカービューに選択インジケータが表示されない

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:title delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:nil]; 
actionSheet.actionSheetStyle = UIActionSheetStyleDefault; 

UIPickerView* picker = [[UIPickerView alloc] initWithFrame:CGRectMake(0,100, 320, 216)]; 
picker.dataSource = self; 
picker.delegate = self; 

[actionSheet addSubview:picker]; 


[actionSheet showInView:self.view]; 

[actionSheet setBounds:CGRectMake(0,0, 320, 411)]; 

答えて

10

:それだった

[picker setShowsSelectionIndicator:YES]; 
+0

は、私はそれが私が行方不明になったシンプルなものを知っていました。 – Jhorra