What is the equivalent CGPointZero in Xamarin.iOS?

I want my UITextView to scroll up when a view appears.

UITextView*note;
[note setContentOffset:CGPointZero animated:YES];

but could not find CGPointZero or CGPoint.Zero in Xamarin.iOS. So what is its equivalent?

+4
source share
2 answers

This is CGPoint.Empty and you can set

UITextView note = new UITextView(); 
note.SetContentOffset(CoreGraphics.CGPoint.Empty, true);
+2
source

Source: https://habr.com/ru/post/1653578/


All Articles