Strange behaviour when setting property in iPhone app
<pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    PushOnStackViewController *vc = [[PushOnStackViewController alloc] init];
    vc.key = [self.keys objectAtIndex:[indexPath row]];

    [self.navigationController pushViewController:vc animated:YES];
}
</code></pre>

<p>and</p>

<p>in the init method of the PushOnStackViewController class I have</p>

<pre><code>- (id)init {    
    self.navigationItem.title = key;

    NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"texts" ofType:@"plist"]];
    self.keys = [dict objectForKey:key];
    [dict release];

    NSLog(@"%@", self.key);
    NSLog(@"%i", [self.keys count]);

    return self;
}
</code></pre>

<p>But why can't I access the self.key? It returns null, even though it has been set(it is a string).</p>

<p>When I access it in viewDidLoad it returns the correct value...anything I haven't read, or am I doing anything wrong? </p>

<p>Thanks in advance.</p>
