aapplication
を押す場所がありbutton
、ボタンを押すと、ラベルがランダムな単語に変わります。しかし、ボタンを押すとlabel
消えます。
私は何をすべきか?
これはコードです:
if (sender == self.button) {
NSString*path = [[NSBundle mainBundle]pathForResource:@"wordss" ofType:@"plist"];
words = [[NSMutableArray alloc]initWithContentsOfFile:path];
[self.randomLabel setText:[self.words objectAtIndex:arc4random_uniform([self.words count])]];
}