मेरे पास UIScrollViewSlidingPages
और SSPullToRefresh
पुस्तकालयों की कई परियोजनाओं में अपेक्षित है, लेकिन अचानक, मुझे इस नए आईओएस 8 प्रोजेक्ट में यह अजीब त्रुटियां मिल रही हैं।आईओएस 8 अपेक्षित एक प्रकार
#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
इस लाइन हो रही है "उम्मीद की एक प्रकार" त्रुटि:
-(id)initWithHeaderImage:(UIImage*)headerImage;
और इस लाइन "अज्ञात प्रकार का नाम UIImage" त्रुटि हो रही है:
@property(strong, nonatomic) UIImage *headerImage;
आपको एक भाषा टैग करना सुनिश्चित करना चाहिए। यह सिंटैक्स हाइलाइटिंग को प्रभावित करता है और साथ ही दूसरों को प्रश्न ढूंढने में मदद करता है। – crashmstr
मेरा पहला अनुमान यह है कि आप आईओएस के बजाय ओएसएक्स के लिए गलती से संकलित कर रहे हैं। –
मैं यह कैसे करूँगा? –