#import "CHViewController.h"
@interface CHViewController () <UIPickerViewDataSource,UIPickerViewDelegate>
- (IBAction)random:(UIButton *)sender;
@property (weak, nonatomic) IBOutlet UIPickerView *pickerView;
@property (strong,nonatomic) NSArray *foods;
@property (weak, nonatomic) IBOutlet UILabel *fruitLabel;
@property (weak, nonatomic) IBOutlet UILabel *stapleLabel;
@property (weak, nonatomic) IBOutlet UILabel *drinkLabel;
@end
@implementation CHViewController
- (void)viewDidL......
阅读全文