|
|
|
Xcode - ติดปัญหา cannot find protocol declaration ใน AppDelegate |
|
|
|
|
|
|
|
ติดปัญหา cannot find protocol declaration ใน AppDelegate เป็นเพราะอะไรครับ
Class สร้างเอง
@protocol OSServicesDelegate <NSObject>
-(void)SuccessSoap:(NSMutableArray *)output setTags:(int)tags;
-(void)FailSoap;
@end
@interface OSServices : NSObject<NSURLConnectionDelegate,OSServiceParserDelegate,UIAlertViewDelegate,MBProgressHUDDelegate>
{
id<OSServicesDelegate> delegate;
int setTags;
}
@property(nonatomic,retain) id<OSServicesDelegate> delegate;
@property(nonatomic,assign) int setTags;
-(void)OSServicesCallMethod:(NSMutableArray *)_function tags:(NSMutableArray *)_tags vars:(NSMutableArray *)_vars url:(NSString *)_url;
@end
พอนำมาใส่ใน AppDelegate
Code
#import <UIKit/UIKit.h>
#import "MainMenuViewController.h"
#import "MGarage.h"
#import "OSServices.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate,OSServicesDelegate>
{
NSUserDefaults *pref;
}
@property(nonatomic,strong) NSUserDefaults *pref;
@property (strong, nonatomic) UIWindow *window;
@end
มันก็ Error cannot find protocol declaration for OSServicesDelegate มันผิดตรงไหนครับ ???
Tag : Mobile, iOS, Objective-C, Mobile
|
ประวัติการแก้ไข 2015-08-03 14:04:37
|
|
|
|
|
Date :
2015-08-03 14:03:28 |
By :
Krok Krak |
View :
1411 |
Reply :
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (Objective-C)
@protocol -----
@end
import ----
@interface classname ---
|
|
|
|
|
Date :
2020-06-02 15:10:51 |
By :
PhrayaDev |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|