Tuesday, December 31, 2013

Consult keyboard cover issues (tableview)

Look at the code, the APP name shouted dlk, input box pop-up soft keyboard is always blocked


In dlkViewController.h code is


--------------------------------------------------

# Import

@ Interface dlkViewController: UIViewController {

IBOutlet UITableView * thistableViews; / / add TABLEVIEW
IBOutlet UITextField * inputs; / / add TEXTFIELD

}

@ Property (nonatomic, retain) UITableView * thistableViews;
@ Property (nonatomic, retain) UITextField * inputs;

@ End

---------------------------------------
dlkViewController.m code is

--------------------------------------
# Import "dlkViewController.h"

@ Implementation dlkViewController

@ Synthesize thistableViews;
@ Synthesize inputs;

@ End

--------------------

At the same time dragged on. Xib file a TABLEVIEW control, on top of it dragged a TEXTFIELD control, I want to achieve is that when I click on this TEXTFIELD, not blocking pop-up soft keyboard input box, a lot of people say online , TABLEVIEW automatically, but I do not have that effect, I later joined the following code

- (Void) textFieldDidBeginEditing: (UITextField *) textField;
{
CGRect Frame = CGRectMake (0, 0, 300, 350);
[ThistableViews setFrame: Frame];
}

But still no effect, the correct approach is to ask?
Reply:
TableView is a ScrollView,
It can be moved by SetContentOffset approach.
Reply:
Can say a specific point?
Reply:
- (Void) textFieldDidBeginEditing: (UITextField *) textField;
{
CGRect Frame = CGRectMake (0, 0, 300, 350);
[ThistableViews setFrame: Frame];
The
}thistableViews into inputs try it

No comments:

Post a Comment