다음을 통해 공유


UIKeyCommand.Create 메서드

정의

오버로드

Create(NSString, UIKeyModifierFlags, Selector)

UIKeyCommand를 만드는 팩터리 메서드입니다.

Create(NSString, UIKeyModifierFlags, Selector, NSString)

UIKeyCommand를 인스턴스화하는 팩터리 메서드입니다.

Create(NSString, UIKeyModifierFlags, Selector)

UIKeyCommand를 만드는 팩터리 메서드입니다.

[Foundation.Export("keyCommandWithInput:modifierFlags:action:")]
public static UIKit.UIKeyCommand Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action);
static member Create : Foundation.NSString * UIKit.UIKeyModifierFlags * ObjCRuntime.Selector -> UIKit.UIKeyCommand

매개 변수

keyCommandInput
NSString
modifierFlags
UIKeyModifierFlags
action
Selector

반환

특성

설명

       [Export("NewFileAccelerator:")]
        void NewFileAccelerator(UIKeyCommand cmd)
        {
           //etc...
        }

        public override void ViewDidLoad ()
        {
            base.ViewDidLoad ();

            var actionSelector = new Selector("NewFileAccelerator:");
            accelerator = UIKeyCommand.Create((NSString) "N",
UIKeyModifierFlags.Command, actionSelector);

            AddKeyCommand(accelerator);
        }

적용 대상

Create(NSString, UIKeyModifierFlags, Selector, NSString)

UIKeyCommand를 인스턴스화하는 팩터리 메서드입니다.

[Foundation.Export("keyCommandWithInput:modifierFlags:action:discoverabilityTitle:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIKeyCommand Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action, Foundation.NSString discoverabilityTitle);
static member Create : Foundation.NSString * UIKit.UIKeyModifierFlags * ObjCRuntime.Selector * Foundation.NSString -> UIKit.UIKeyCommand

매개 변수

keyCommandInput
NSString
modifierFlags
UIKeyModifierFlags
action
Selector
discoverabilityTitle
NSString

반환

특성

적용 대상