views:

461

answers:

1

setInputView: is still presented in the both UItextField and UITextView classes. But the below code shows different results for 3.2 and 4.0 SDKs.

I have installed latest (GM) SDK version.
About xCode -> More info shows
Xcode: 3.2.3 (1688),
SDKs:
iPhone OS: 3.2: (7B367), 4.0: (8A293)
iPhone Simulator: 3.2: (7W367a), 4.0: (8A293)

There is my issue or Apple one?

UIView *emptyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
UITextView* editView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
editView.inputView = emptyView;
UITextField* editField = [[UITextField alloc] initWithFrame:CGRectMake(30, 10, 50, 50)];
editField.inputView = emptyView;
NSLog(@"editView.inputView = %@, editField.inputView = %@", [editView.inputView description], [editField.inputView description]);
[emptyView release];

NSLog output for SDK3.2 (iPad simulator):
editView.inputView = <UIView: 0x4d32530; frame = (0 0; 0 0); layer = <CALayer: 0x4d32410>>, editField.inputView = <UIView: 0x4d32530; frame = (0 0; 0 0); layer = <CALayer: 0x4d32410>>

NSLog output for SDK4.0 (iPhone and iPhone4 simulators):
editView.inputView = (null), editField.inputView = <UIView: 0x604cee0; frame = (0 0; 0 0); layer = <CALayer: 0x604d260>>

A: 

I have been able to, however I cannot get it to respond to taps even with adding a button to that view.

???

Sam V
>I have been able to,do you mean you got not null? What source differences?
Sim