我头上有很多问号.我没有得到的是在xcode 4.3之前我需要在我的实现文件中声明前向声明(对于私有方法).
就像我的.m文件一样:
// deleting this with xcode 4.3 the below code still does work
// in previous versions i had to put this because otherwise the compiler can't find methodFirst
@interface DetailViewController ()
- (void)methodFirst;
- (void)methodSecond;
@end
@implementation DetailViewController
- (void) methodSecond
{
// if i delete the forward declaration now adays i dont get a compiler error that he cant find method first
[self methodFirst];
}
- (void) methodFirst
{
}
@end
Run Code Online (Sandbox Code Playgroud)
现在看来我不再需要那样做了?Apple是否更新了编译器以便不再需要提交声明?
我找不到任何有关此更改的Apple官方消息来源的参考.我想知道其他人在新环境中遇到了什么.
在 ScrollView(alwaysBounceVertical: false) 的初始值设定项中有一个属性,但我似乎再也找不到它了。
有谁知道如何在 SwiftUI ScrollView 上禁用垂直反弹/过度滚动?