title: Forward declaring a protocol in objective-c
body: <p>My class .h looks like:</p>
  
  <pre><code>@protocol AppInfoDelegate;
  @class InfoTextView;
  
  
  @interface AppInfoViewController : UIViewController &lt;AppInfoDelegate&gt; {
  
  }
  
  
  @property (nonatomic, retain) NSArray *textObjectsArray;
  @property (nonatomic, retain) InfoTextView *itView;
  @property (nonatomic, retain) UIButton *pgBackButton;
  @property (nonatomic, retain) UIButton *pgFwdButton;
  
  @end
  
  @protocol AppInfoDelegate &lt;NSObject&gt;
  - (void)closeButtonPressed:(id)sender;
  
  @end
  </code></pre>
  
  <p>I get a warning that the protocol definition for AppInfoDelegate cannot be found.  What is the proper way to do this and why cannot it not be found?  Do I need to have the whole definition of the protocol before the interface?  Thanks!</p>