声明为 BOOL
@property (nonatomic, assign) BOOL BookmarkState;
使用情节提要在导航栏上添加的 UIButton 的 BOOL 时
[_bookmarkbtn setBookmarkState:NO];
然后得到ARC语义问题
No visible @interface for UIButton declares the selector"setbookmarkState
编辑:
PageViewController h 文件
@interface PageViewController : UIViewController <UIPageViewControllerDelegate, UIPageViewControllerDataSource>
@property (nonatomic, assign) BOOL BookmarkState;
@end
PageViewController m 文件
@interface PageViewController () {
BOOL BookmarkState;
}
@property (strong, nonatomic) IBOutlet UIButton *bookmarkbtn;
@implementation PageViewController