title: iOS 8 Expected a type
body: <p>I have the <code>UIScrollViewSlidingPages</code> and the <code>SSPullToRefresh</code> libraries in a lot of projects, but suddenly, I'm getting this weird errors in this new iOS 8 project.</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface TTSlidingPageTitle : NSObject
  
  -(id)initWithHeaderText:(NSString*)headerText;
  -(id)initWithHeaderImage:(UIImage*)headerImage;
  
  //The title text to go in the nav bar
  @property(strong, nonatomic) NSString *headerText;
  
  //An image to use in the nav bar (if you set this, the title text will not be used)
  @property(strong, nonatomic) UIImage *headerImage;
  
  @end
  </code></pre>
  
  <p>This line is getting the <strong>"Expected a Type"</strong> error:</p>
  
  <pre><code> -(id)initWithHeaderImage:(UIImage*)headerImage;
  </code></pre>
  
  <p>And this line is getting the <strong>"Unknown type name UIImage"</strong> error:</p>
  
  <pre><code>@property(strong, nonatomic) UIImage *headerImage;
  </code></pre>