当视图出现时,我希望我的UITextView滚动到顶部。
UITextView*note;
[note setContentOffset:CGPointZero animated:YES];
但在Xamarin.iOS中找不到CGPointZero或CGPoint.Zero。那么它的等效物是什么?
当视图出现时,我希望我的UITextView滚动到顶部。
UITextView*note;
[note setContentOffset:CGPointZero animated:YES];
这里是CGPoint.Empty
,您可以在此处看到:
https://developer.xamarin.com/api/field/CoreGraphics.CGPoint.Empty/
UITextView note = new UITextView();
note.SetContentOffset(CoreGraphics.CGPoint.Empty, true);