I am developing In App purchase for one existing application. Scenario is something like I have a feature in application (which contain UITextField control), which is initially disabled and when user taps on that UITextField, it shows the message to unlock and buy that feature and once its done, UITextField will be enable.
But the problem is that since UITextField is disabled initially, I am not able to detect any tap on that, so I am not able to get any event where I can code for In App purchase functionality.
OR
If its not possible to detect the tap of disabled UIControl, what can be other option to achieve the above functionality.
Please help.
Regards, Praik
Put an invisible button over the text area by making a button like this:
UIButton* button = [[UIButton buttonWithType:UIButtonTypeCustom] retain]; button.frame =CGRectMake(your parameters here); button.showsTouchWhenHighlighted=YES; // handy for debugging [button addTarget:self action:@selector(buttonPress:) forControlEvents:UIControlEventTouchUpInside];
and adding it as a subview. Depending on what you're trying to achieve and what your UITextField is contained in, what you need to add it to may differ.