uikeyboard done button/return button

Ads
 

uikeyboard done button/return button

Hi everyone!!! Just worried about ..how to return the UIKeyboard on done or return button click in my iPhone application.

Thanks

View Answers

January 5, 2011 at 11:34 AM

Hi, Find the given code that will allow you to return the uikeyboard on done button click. Do not forget to call <UITextFieldDelegate> in you header file.

- (void)viewDidLoad {
    [super viewDidLoad];

            button1.returnKeyType = UIReturnKeyDone;
            button2.returnKeyType = UIReturnKeyDone;

        button1.delegate = self;
       button2.delegate = self;

  }

// dismiss the keyboard then the "done" button is clicked
- (BOOL)textFieldShouldReturn:(UITextField *)textField
 {
    [button1 resignFirstResponder];
    [button2 resignFirstResponder];

    return YES;
 }

Ads









Related Tutorials/Questions & Answers:
uikeyboard done button/return button
uikeyboard done button/return button  Hi everyone!!! Just worried about ..how to return the UIKeyboard on done or return button click in my iPhone... to return the uikeyboard on done button click. Do not forget to call <
uitableview edit done button
uitableview edit done button  How to add Edit / Done button in UITableView with an action on click?   UITableview Edit done Button To add " Edit / Done button " in UITableView add the given code in UIView Controller
Advertisements
uikeyboard disable return key
uikeyboard disable return key  uikeyboard - hot to disable return key
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can we retriving dat from database, capturing data, moving to next page.. etc
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can be retriving dat from database, capturing data, moving to next page.. etc
ModuleNotFoundError: No module named 'done'
ModuleNotFoundError: No module named 'done'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'done' How to remove the ModuleNotFoundError: No module named 'done' error
ModuleNotFoundError: No module named 'done'
ModuleNotFoundError: No module named 'done'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'done' How to remove the ModuleNotFoundError: No module named 'done' error
where the progrming is done in the struts.
where the progrming is done in the struts.  where the progrming is done in the struts.   Hi Friend, You can use EditPlus, Eclipse or NetBeans IDE. For more information, visit the following link: Struts Tutorials
ModuleNotFoundError: No module named 'odoo10-addon-sale-revert-done'
ModuleNotFoundError: No module named 'odoo10-addon-sale-revert-done'  ...: No module named 'odoo10-addon-sale-revert-done' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-sale-revert-done' error
ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done'
ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done' ...: ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done' error
ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done'
ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done' ...: ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-mail-activity-done' error
ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done'
ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done' ...: ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done' error
ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done'
ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done' ...: ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-mail-activity-done' error
ModuleNotFoundError: No module named 'odoo13-addon-mail-activity-done'
ModuleNotFoundError: No module named 'odoo13-addon-mail-activity-done' ...: ModuleNotFoundError: No module named 'odoo13-addon-mail-activity-done' How to remove the ModuleNotFoundError: No module named 'odoo13-addon-mail-activity-done' error
ModuleNotFoundError: No module named 'odoo9-addon-sale-revert-done'
ModuleNotFoundError: No module named 'odoo9-addon-sale-revert-done'  ...: No module named 'odoo9-addon-sale-revert-done' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-sale-revert-done' error
ModuleNotFoundError: No module named 'txt_when_done'
ModuleNotFoundError: No module named 'txt_when_done'  Hi, My... 'txt_when_done' How to remove the ModuleNotFoundError: No module named 'txt_when_done' error? Thanks   Hi, In your python
wnidows button
wnidows button   How to handle windows back and forward button in struts applications, without using java script
radio button
radio button  On selecting a radio button, it should open a aspx page
html button
html button  when i click the submit button the entered data will be displayed below the submit button please help me
coding of button
coding of button  What is code of fetching the value of button in a textbox using javascript
flogin button
flogin button  how to pass redirctt url for flogin button...and to retrieve parameters that are passed in that url..to store in our database
create a button
create a button  i have created button inhtml but my jsp is not working,so can u guide me
Back button
Back button  how to redirect to a home page when a back button is pressed in jsp instead of displaying the previous page
Print Button
Print Button  i want the source code for printing details of jform.. so plz help me for source code of print button
button tag
button tag  how do i change button color to black. meant to say i want black button with white text on it   Hi Friend, Try the following... Message: <input type="text" id="msg"><br> <input type="button" value
How to draw a web button, draw a web button, web button
How to draw a web button       Be ready to learn a simple technique to draw a web button, if you are not able to make a web button follow every steps that are give in this example
submit button
submit button  <p>hi I am trying to insert record in database using hibernate in JSP(Netbeans). When I click insert button it should go to insert.java class but fails to go.</p> <ul> <li><p>
how to done calculation for dynamic generated textboxes in jquery/javascript/ajax?
how to done calculation for dynamic generated textboxes in jquery/javascript/ajax?  how to done calculation for dynamic generated textboxes in jquery/javascript/ajax
handling Button Event in iphone
handling Button Event in iphone  handling Button Event in iphone
How to make animated web button, make animated web button, animated web button
How to make animated web button       This is a web button animation example, it is a very simple... take a new file as button size. Draw a circle: Choose "f253f4" color
HTML Button onclick get ID of Button
HTML Button onclick get ID of Button  How i can get the ID of HTML Button on click?? I wanted to do it using JavaScript function. Thanks

Ads