设置了MarkDown
@interface CollectionViewItem : NSCollectionViewItem
@property NSString * info;
@property (weak) IBOutlet NSTextField *lbl_label1;
- (IBAction)Btn_Start:(NSButton *)sender;
@end
#import "CollectionViewItem.h"
@interface CollectionViewItem ()
@end
@implementation CollectionViewItem
- (void)viewDidLoad {
[super viewDidLoad];
// Do view setup here.
self.view.wantsLayer = YES;
self.view.layer.backgroundColor = [NSColor systemRedColor].CGColor;
// self.lbl_label1.stringValue = _info;
}
- (IBAction)Btn_Start:(NSButton *)sender {
self.lbl_label1.intValue++;
}
@end
网友评论