I want to remove microphone key from keyboard.But in code. Can you help me?
Asked
Active
Viewed 1,842 times
1 Answers
1
Unfortunately, there seems to be no simple command to do so. Best way is to create custom keyboard and edit yourself.
Check this cocopod for your app
According to your question. Here is the link UITextInputCurrentInputModeDidChangeNotification

cole
- 3,147
- 3
- 15
- 28
-
-
yes, UITextInputCurrentInputModeDidChangeNotification this to check which mode is on and disable any action if user press this button – cole Aug 19 '17 at 06:56
-
-
I have a textfield that i want to disable microphone key . can i do that? – Bita Aug 19 '17 at 07:08
-
1https://cocoacasts.com/what-is-notification-name-and-how-to-use-it/ Here is shows swift example of doing so. Check notification.name If it is dictionary for example... call method to do nothing. – cole Aug 19 '17 at 07:14
-
-
I read content of this link . but i cant use if for my code.can you give me a code that i can disable microphone key from keyboard? – Bita Aug 19 '17 at 07:44
-
for exaple i have a password textfield that i want to disable microphone for it. – Bita Aug 19 '17 at 07:45
-
1I am not sure, what more you want ? In the link it have state clearly everything with example. Also it does not matter. Notification is set for keyboard not for textfield. As soon the keyboard pop on view you can check from that point onwards what really happening and choose to do nothing once it is microphone – cole Aug 19 '17 at 07:52