I have make a toolbar for the keyboard. It's contains a uitextfield and two button.
When a user tape type character on a uitextfield in the main view, I upgrade the text also on the uitextfield in the toolbar.
On simulator iphone/ipad it's good. But when i run on a real device the textfield in the toolbar don't be refresh.
But if i check my toolbar subviews:
Code:
<UITextField: 0x18b050; frame = (12 7; 838 31); text = 'fhnhnhnhnhnhnhn'; clipsToBounds = YES; opaque = NO; autoresize = W+BM; layer = <CALayer: 0x1f8640>>
My textfield contains the good text. But it's not refresh
an idea?
[[[[tempView subviews]objectAtIndex:0]subviews]count] == my tool bar
Code:
for(int k = 0; k < [[[[tempView subviews]objectAtIndex:0]subviews]count]; k++) {
if([[[[[tempView subviews]objectAtIndex:0]subviews]objectAtIndex:k] isKindOfClass:[UITextField class]]){
UITextField *tempTxtfield = [[[[tempView subviews]objectAtIndex:0]subviews]objectAtIndex:k];
[tempTxtfield setText:@"test"];