I have the UIScrollViewSlidingPages
and the SSPullToRefresh
libraries in a lot of projects, but suddenly, I'm getting this weird errors in this new iOS 8 project.
#import <Foundation/Foundation.h>
@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
This line is getting the "Expected a Type" error:
-(id)initWithHeaderImage:(UIImage*)headerImage;
And this line is getting the "Unknown type name UIImage" error:
@property(strong, nonatomic) UIImage *headerImage;