title: image in title of navigation bar in objective c
body: <p>I have made an iPad application, in that I used navigation control,</p>
  
  <p>now in the title bar , I want to put image on left side, so I hide title bar with label, but label is not covering entire width of title bar,</p>
  
  <p>IL APP IN THE SCREEN SHOT, </p>
  
  <p>here is the code snippet,</p>
  
  <pre><code>UILabel *titleView = (UILabel *)self.navigationItem.titleView;
      if (!titleView) {
          titleView = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 800, 50)];
          titleView.backgroundColor = [UIColor clearColor];
          titleView.font = [UIFont boldSystemFontOfSize:20.0];
          titleView.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5];
  
          titleView.textColor = [UIColor yellowColor]; // Change to desired color
  
  
          titleView.backgroundColor=[UIColor blackColor];
  
          titleView.text = @"IL APP";
          titleView.textAlignment=UITextAlignmentCenter;
          //self.navigationItem.titleView = titleView;
          [self.navigationItem setTitleView:titleView];
          [titleView release];
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xCkB8.png" alt="screen"></p>