title: How to resolve the "Expected a type" error in ios
body: <p>Am new to development.I got an error regarding the "Expected a Type" error.In two classes of my application,i declared the method in one class and in another class i used that method with the help of @protocol method.How to resolve it.Two classes DayButton.h and DDCalenderView.h
  In <code>DayButton.h</code>, i declared as</p>
  
  <pre><code> @protocol DayButtonDelegate &lt;NSObject&gt;
  -(void)dayButtonPressed:(id)sender;
  @end
  </code></pre>
  
  <p>And in <code>DDCalenderView.h</code>,i wrote as</p>
  
  <pre><code>@protocol DDCalenderViewDelegate&lt;NSObject&gt;
  -(void)dayButtonPressed:(DayButton *)button;
  </code></pre>
  
  <p>Getting an exception near void method in <code>DDCalenderView.h</code></p>