开发者

how to use inputView property?

I have created my own keyboard and I want to open that in place of standard keyboard provided by the iPhone in the uitextview to enter text.In the Apple documentation I have found one property inputView in the UIResponder Class Reference. It is given on this link :-here But I m not getting how to use this property.please tell me how to use this property prorpely. I have tried to use this proerty like this

UIView *mainView;

@property (readwrite,retain) IBOutlet UIView *mainView;

- (UIView *)inputView {

开发者_如何转开发    return mainView;
}


That's a property. You don't have to override its implementation. Just use it as any other regular property and affect to it your custom input view.

yourTextField.inputView = yourCustomInputView;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜