title: iOS - Why my NSURL isn't retained in the init method?
body: <p>I'm creating a new UIViewController with 2 properties :</p>
  
  <pre><code>@property (retain, nonatomic) NSURL *url;
  @property (retain, nonatomic) NSString *title;
  </code></pre>
  
  <p>and synthetised :</p>
  
  <pre><code>@synthesize url = _url;
  @synthesize title = _title;
  </code></pre>
  
  <p>in my custom init method i'm not using the setter like the Memory Management Guide says but when I need to use the properties in the viewDidLoad, the url seems empty, the title doesn't</p>
  
  <pre><code>- (id)initWithURL:(NSURL *)url andTitle:(NSString *)titleTemp
  {
      self = [super initWithNibName:@"navigatorViewController" bundle:nil];
      if (self) {
          _url = url;
          _title = titleTemp;
      }
      return self;
  }
  
  - (void)viewDidLoad
  {
       [super viewDidLoad];
       // Do any additional setup after loading the view from its nib.
       [_titreBarButtonItem setTitle:_title];
  
       NSURLRequest *urlRequest = [[NSURLRequest alloc] initWithURL:_url];
      [_webView loadRequest:urlRequest];
      [urlRequest release];
  }
  </code></pre>
  
  <p>I can see my title but my web view is blank.
  If I use self.url in the init, it's working !</p>
  
  <p>Do you have an idea ?</p>
  
  <p>PS : Here's how I call my init  :</p>
  
  <pre><code>NSString *urlString = [[[NSBundle mainBundle] pathForResource:@"infos" ofType:@"html"] copy];
  NSURL *url = [[NSURL alloc] initFileURLWithPath:urlString];
  [urlString release];
  navigatorViewController *navigatorVC = [[navigatorViewController alloc] initWithURL:url andTitle:@"Infos"];
  [url release];
  [self presentViewController:navigatorVC animated:YES completion:nil];
  [navigatorVC release];
  </code></pre>
  
  <p>Thanks a lot</p>