xcode 4 - custom keyboard

前端 未结 2 1716
半阙折子戏
半阙折子戏 2021-01-15 23:25

Is there a way to stop the default keyboard and have my custom designed keyboard when user clicks on TextField ?

I already designed my buttons to be always available

2条回答
  •  孤街浪徒
    2021-01-15 23:56

    You need to use this in your viewController and its enough :)

    - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
    {
         return NO; //hide keyboard
    }
    

提交回复
热议问题