title: present modal view controller
body: <p>I am just getting started with iphone development
  I have a Tabbed application and I wanted to display a log in form modally
  so i looked here <a href="http://developer.apple.com/iphone/library/featuredarticles/ViewControllerPGforiPhoneOS/CombiningViewControllers/CombiningViewControllers.html#//apple_ref/doc/uid/TP40007457-CH104-SW3" rel="nofollow noreferrer">Apple Dev</a>  and did this inside one of my view controllers
  I connected a button to the following action:</p>
  
  <pre><code> #import "LoginForm.h"
  ...
  -(IBAction)showLogin{
  LoginForm *lf = [[LoginForm alloc]initWithNibName:@"LoginForm" bundle:nil];
  lf.delegate = self;
  lf.modalPresentationStyle =  UIModalTransitionStyleCrossDissolve;
  [self presentModalViewController:lf animated:YES];
  }
  </code></pre>
  
  <p>when I build I get "request for member 'delegate' in something not a structure or union"
  If I get rid of the second line, it builds but pressing the button does nothing.</p>
  
  <p>What am I missing here?</p>