comparison ios/dw.m @ 2442:725a6fbb44cd

iOS: DWComboBox needs to initialize the array so the list works.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 09 Apr 2021 08:41:34 +0000
parents 070337dd4ef7
children 42ba334cb8f7
comparison
equal deleted inserted replaced
2441:a80df2e7195d 2442:725a6fbb44cd
2379 { 2379 {
2380 [self setDelegate:self]; 2380 [self setDelegate:self];
2381 2381
2382 /* Set UI defaults */ 2382 /* Set UI defaults */
2383 toolbarStyle = UIBarStyleDefault; 2383 toolbarStyle = UIBarStyleDefault;
2384 dataArray = [[NSMutableArray alloc] init];
2384 2385
2385 /* Setup the arrow image */ 2386 /* Setup the arrow image */
2386 UIButton *imageButton = [UIButton buttonWithType:UIButtonTypeCustom]; 2387 UIButton *imageButton = [UIButton buttonWithType:UIButtonTypeCustom];
2387 UIImage *image = [UIImage systemImageNamed:@"chevron.down"]; 2388 UIImage *image = [UIImage systemImageNamed:@"chevron.down"];
2388 [imageButton setImage:image forState:UIControlStateNormal]; 2389 [imageButton setImage:image forState:UIControlStateNormal];