NSLog(@"%@",appDelegate.strSlctdCntry);
btnSlctCurrency.titleLabel.text = [NSString stringWithFormat:@"%@",appDelegate.strSlctdCntry];
btnSlctCurrency.titleLabel.textAlignment = UITextAlignmentCenter;
上面的代码是NSLog(@"%@",appDelegate.strSlctdCntry);
。从UITableView中得到的索引名字正确,但是button名字第一次没有改变,第二次改变了。
这是为什么?