直接上代码:
我现在pickview能够显示,我想把数组pickviewarray的内容添加到pickview中,这个要怎么做,求大神给解释哈。
self.pickviewarray=[[NSMutableArray alloc]initWithArray:@[@"药物配伍禁忌", @"药物相互作用",@"孕妇慎用",@"儿童慎用",@"药品超剂量"]];
self.pickview=[[UIPickerView alloc]initWithFrame:CGRectMake(self.view.frame.size.width/4, self.view.frame.size.height/4, self.view.frame.size.width/2, 216)];
self.pickview.backgroundColor=[UIColor whiteColor];
[self.view addSubview:self.pickview];
self.pickview.showsSelectionIndicator=YES;
return self.pickview;
我现在pickview能够显示,我想把数组pickviewarray的内容添加到pickview中,这个要怎么做,求大神给解释哈。