0
我在接口文件下面的代碼:有人可以根據代表解釋下面的合成聲明嗎?
#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
@class FaxRecipient;
//Definition of the delegate's interface
@protocol AddLocalRecipientsTableViewControllerDelegate
-(void)getLocalRecipient:(FaxRecipient*)recipient;
@end
@interface AddLocalRecipientsTableViewController : UITableViewController {
NSMutableArray *localRecipientItems;
NSURLConnection *connectionInprogress;
UIActivityIndicatorView *activityIndicator;
NSIndexPath *lastIndexPath;
FaxRecipient * faxRecipient;
}
@property(nonatomic,retain) NSIndexPath *lastIndexPath;
@property(nonatomic,retain)FaxRecipient * faxRecipient;
@property (nonatomic, assign) id<AddLocalRecipientsTableViewControllerDelegate> delegate;
-(void) loadLocalRecipients;
我在執行文件中的以下行:
@synthesize delegate=_delegate;
什麼用下劃線的合成是什麼意思?我的意思是我知道常規合成的功能。一切正常,我在其他站點查看了這個代碼示例。
許多可能的重複。 http://stackoverflow.com/search?q=objc+property+underscore。 – csano 2011-06-12 18:14:19
可能重複[@synthesize window = _window做什麼?](http://stackoverflow.com/questions/5170631/what-does-synthesize-window-window-do) – 2011-06-12 18:15:54