I just want to change the text of a Label. There for I have a ViewController to a Xib-Interface where the label is created in and linked to the ViewController. I just create an instance of this view controller an want to change the text of the label:
NewFormScoreViewController * newPoints=[[NewFormScoreViewController alloc] init];
[newPoints.TheNewScoreLabel setText:[NSString stringWithFormat:@"%i",newScore]];
[newPoints.view setFrame:CGRectMake(500, 500, newPoints.view.frame.size.width, newPoints.view.frame.size.height)];
[self.view addSubview:newPoints.view];
The view is visible but there is just the placeholder displayed, and not the new String. [NSString stringWithFormat:@"%i",newScore] returns the needed String, but it seems like the transfer doesn't work. But why? What's wrong?