4
我希望我的UITextView在顯示視圖時滾動到頂部。什麼是Xamarin.iOS中的等效CGPointZero?
UITextView*note;
[note setContentOffset:CGPointZero animated:YES];
但是在Xamarin.iOS中找不到CGPointZero或CGPoint.Zero。那麼它是什麼?
我希望我的UITextView在顯示視圖時滾動到頂部。什麼是Xamarin.iOS中的等效CGPointZero?
UITextView*note;
[note setContentOffset:CGPointZero animated:YES];
但是在Xamarin.iOS中找不到CGPointZero或CGPoint.Zero。那麼它是什麼?
這是CGPoint.Empty
,你可以在這裏看到:
https://developer.xamarin.com/api/field/CoreGraphics.CGPoint.Empty/
這是CGPoint.Empty,你可以設置
UITextView note = new UITextView();
note.SetContentOffset(CoreGraphics.CGPoint.Empty, true);