在fastpdfkit中声明delegates:
@interface BookmarkViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
//Delegate to get the current page and tell to show a certain page. It can also be used to
// get a list of bookmarks for the current document.
NSObject<BookmarkViewControllerDelegate> *delegate;
}
@property (nonatomic, assign) NSObject<BookmarkViewControllerDelegate> *delegate;
@synthesize delegate;
使用了ARC的声明:
@interface BookmarkViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
id __unsafe_unretained <BookmarkViewControllerDelegate> delegate;
}
@property (unsafe_unretained) id <BookmarkViewControllerDelegate> delegate;
@synthesize delegate;
在调试时报的结果:
currentPage NSUInteger 0
delegate objc_object * 0x00000000