我知道,这方面已经存在几个问题,我一直通过这些问题。
When I debug, a line of code that calls a delegate method appears to be ignored. here s the line:
[_delegate insertDataLocation:dbLocation Time:dbTime Reminder:dbReminder];
我假定,这是代表没有适当确定的问题,因此,我在此指出:
www.un.org/Depts/DGACM/index_french.htm
@protocol mapDelegate;
@interface ViewController : UIViewController
@property (strong, nonatomic) id<mapDelegate> delegate;
ViewController.m
@synthesize delegate = _delegate;
- (void)viewDidLoad
{
[super viewDidLoad];
[self setDelegate:_delegate];
}
//Here s where I call the method, FYI
[_delegate insertDataLocation:dbLocation Time:dbTime Reminder:dbReminder];
<>AppDelegate.h
@protocol mapDelegate
-(void)insertDataLocation:(NSString*)l Time:(NSString*)t Reminder:(NSString*)r;
@end
@interface AppDelegate : UIResponder <UIApplicationDelegate, mapDelegate>
AppDelegate.m
-(void)insertDataLocation:(NSString*)l Time:(NSString*)t Reminder:(NSString*)r {
//Here s my method s code
}