I'm trying to update the username field for a textfield. Currently there is a place holder which has "Username" written in it. I am loading the username from a settings file but for clarity I will just hardcode in the username.
- (void)viewDidLoad {
settings=[Settings new];
[settings loadData];
//username.text=settings.username;
username.text=@"Test";
}
For some reason this does not work!!! However, if I have a button which when I click it, that will update the textfield.
e.g.
- (IBAction)login:(id)sender{
username.text=@"test";
}
So the button updates the text but I cannot update from viewDidLoad. Is this a threading issue? I can't believe something so simple is taking so long.