I've created a textView in this way:
UITextView*txtview = [[UITextView alloc] initWithFrame:CGRectMake(x,y,25,25)];
txtview.backgroundColor = [UIColor clearColor];
txtview.textColor = [UIColor redColor];
txtview.font = [UIFont fontWithName:@"TrebuchetMS-Bold" size:18];
txtview.inputView = segmentKB;
txtview.delegate = self;
[self.view addSubview:txtview];
[txtview sizeToFit];
My problem is that when I edit this text view, it moves up of some pixels.
How can I solve this and why does it happen? The inputView is a segmented control, but the same problem also happens with a normal keyboard.