共用方式為


MKMapView.Register 方法

定義

多載

Register(Class, String)
Register(Type, String)

Register(Class, String)

[Foundation.Export("registerClass:forAnnotationViewWithReuseIdentifier:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual void Register (ObjCRuntime.Class viewClass, string identifier);
abstract member Register : ObjCRuntime.Class * string -> unit
override this.Register : ObjCRuntime.Class * string -> unit

參數

viewClass
Class

即將加入。

這個參數可以是 null

identifier
String
屬性

適用於

Register(Type, String)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public void Register (Type viewType, string identifier);
member this.Register : Type * string -> unit

參數

viewType
Type
identifier
String
屬性

適用於