在AppDelegate.m中为什么我收到此消息错误
从“MyPlugin *”
分配给'int *'的指针类型不兼容
在这一行:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.myPlugin = [[MyPlugin alloc] init];
在AppDelegate.h中我有:
@property (strong, nonatomic) MyPlugin *myPlugin;
在MyPlugin中我有:
#import "MyPlugin.h"
#import <UIKit/UIKit.h>
@implementation MyPlugin
- (void)dealloc {
[super dealloc];
}
- (MyPlugin*)init
{
if (self = [super init]) {
}
return self;
}