title: SetTitle for buttons in iPhone SDK > 3.0
body: <p>Today I have installed iPhone SDK 3.1 along with appropriate XCode. The thing that happened is that all of my buttons have lost their titles. Here is my code for button creation:</p>
  
  <pre><code>UIButton *dateButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] initWithFrame:CGRectMake(240.0, 57.0, 60.0, 30.0)];
          [dateButton setTitle:@"Date" forState:UIControlStateNormal];
          [dateButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
          [dateButton setBackgroundImage:[UIImage imageNamed:@"bg_headline.png"] forState:UIControlStateNormal];
          [dateButton addTarget:self action:@selector(GoToDateSettings:) forControlEvents:UIControlEventTouchUpInside];
          [self.view addSubview:dateButton];
  </code></pre>
  
  <p>Any ideas what is the problem? This code worked flawlessly in &lt; 2.2 SDKs</p>
  
  <p>Regardz,
  Mladen</p>