开发者

Weird UIPickerView bug

UIPickerView Glitch http://img641.imageshack.us/img641/6858/upshotv42weqbe.png

Here is a picture of the main view for an app I'm making, the thing at the bottom is supposed to be a UIPickerView. I have the UIPickerView view controller in its own .h and .m files, separate from the main view controller's. could this be the problem?

here is the code that (should, I pretty much copied it from a tutorial) populate the UIPickerview with the contents of an array: [super viewDidLoad];

arrayCrops = [[NSMutableArray alloc] init];

[arrayCrops addObject:@"Corn"];
[arrayCrops addObject:@"Soybeans"];
[arrayCrops addObject:@"Soft Red Winter Wheat"];
[arrayCrops addOb开发者_StackOverflow社区ject:@"Hard Red Winter Wheat"];
[arrayCrops addObject:@"Cotton"];
[arrayCrops addObject:@"Barley"];
[arrayCrops addObject:@"Oats"];
[arrayCrops addObject:@"Milo"];
[arrayCrops addObject:@"Alfalfa"];
[arrayCrops addObject:@"Grass"];
[arrayCrops addObject:@"Sorghum"];

and the arrayCrops is an ivar so thats why its not a new instance here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜