Hello,
I am designing a custom keyboard for my app but I am having problems understanding how I can add text to my text field and then dismiss the keyboard without having both classes referencing each other.
I have a main controller which declares an instance of a inherited UIViewController and a text field, the view of this controller is my custom keyboard added over the default one.
I have also declared in this class several buttons, one of which I want to set to dismiss the keyboard and the others will add characters to my textbox.
This class doesn't have access to the textfield which caused my custom keyboard to appear so how do I access it to do the actions above?
I am guessing it has something to do with delegates but I just cant seem to get my head round it.
Hope someone can help
Andrew
I am designing a custom keyboard for my app but I am having problems understanding how I can add text to my text field and then dismiss the keyboard without having both classes referencing each other.
I have a main controller which declares an instance of a inherited UIViewController and a text field, the view of this controller is my custom keyboard added over the default one.
I have also declared in this class several buttons, one of which I want to set to dismiss the keyboard and the others will add characters to my textbox.
This class doesn't have access to the textfield which caused my custom keyboard to appear so how do I access it to do the actions above?
I am guessing it has something to do with delegates but I just cant seem to get my head round it.
Hope someone can help
Andrew