1

I'm trying to find these constants in Xamarin.iOS currently - but can't find them.

enum {
   NSLayoutPriorityRequired = 1000,
   NSLayoutPriorityDefaultHigh = 750,
   NSLayoutPriorityDragThatCanResizeWindow = 510,
   NSLayoutPriorityWindowSizeStayPut = 500,
   NSLayoutPriorityDragThatCannotResizeWindow = 490,
   NSLayoutPriorityDefaultLow = 250,
   NSLayoutPriorityFittingSizeCompression = 50,
};
typedef float NSLayoutPriority;

Which C# object are they provided in?

4

1 回答 1

4

那是因为它是UILayoutPriority在 iOS 中命名的。从NSLayoutConstraint.hiOS 6.1 SDK 的文件中:

@property UILayoutPriority priority;

UILayoutPriority是命名空间内的枚举MonoTouch.UIKit

于 2013-07-22T12:30:27.853 回答