当我将宽度和高度值设置为 NSTextField floatValue 我的 customView 消失只适用于数字任何想法为什么?
- (void)awakeFromNib {
NSRect f = self.frame;
f.size.width = [EnterTextWidth floatValue];
f.size.height = [EnterTextHeight floatValue];
self.frame = f;
这个工作正常:
- (void)awakeFromNib {
NSRect f = self.frame;
f.size.width = 640;
f.size.height = 480;
self.frame = f;