NSScrollView *scrollView = [[NSScrollView alloc] initWithFrame:frame];
[[scrollview contentView] scrollToPoint: NSMakePoint(0, 0)];
[scrollview reflectScrolledClipView: [scrollview contentView]];
本文详细解析了如何使用NSScrollView实现视图滚动的功能,并通过代码实例展示了如何将内容视图平移到指定位置并反射滚动剪切视图。
NSScrollView *scrollView = [[NSScrollView alloc] initWithFrame:frame];
[[scrollview contentView] scrollToPoint: NSMakePoint(0, 0)];
[scrollview reflectScrolledClipView: [scrollview contentView]];

被折叠的 条评论
为什么被折叠?