如何遍历NSView下的子视图呢
for (NSView *aview in [SuperV subviews]) { if([aview isMemberOfClass:[NSButton class]]) { NSButton *cButton=(NSButton *)aview; [cButton setBezelStyle:NSRoundedBezelStyle]; [cButton setWantsLayer:YES]; [cButton setBordered:NO]; } }
遍历NSView下的子视图方法
时间: 2024-09-30 06:58:56