Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7031185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:46:11+00:00 2026-05-28T00:46:11+00:00

I have done an application named irewards using Xcode 4.1 and it worked fine

  • 0

I have done an application named “irewards” using Xcode 4.1 and it worked fine for me.Then for another application i have upgraded my Xcode to 4.2.1.Now when i try to run my first irewards ,it works on simulator but behaves strange on device.It have 2 textfields to insert username and password.When clicking on that it moves up.But does not showing the key board.Key board is missing.Sometimes a part of the key board is showing at the corner.The thing is that it works fine on simulator.Is this have any relation with the upgraded Xcode?anyone faced such an issue? i am using this code for moving up and down the text fields

- (void) keyboardWillShow: (NSNotification*) aNotification
{    
    int position = 0;
    if ([username isFirstResponder])
        position = 120;
    else if ([password isFirstResponder]) position = 120;
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.3];
    CGRect rect = [[self view] frame];
    rect.origin.y -= position; 
    [[self view] setFrame: rect];
    [UIView commitAnimations];
}

- (void) keyboardWillHide: (NSNotification*) aNotification
{
    int position = 0;
    if ([username isFirstResponder])
        position = 120;
    else if ([password isFirstResponder]) position = 120;
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.3];
    CGRect rect = [[self view] frame];
    rect.origin.y += position; 
    [[self view] setFrame: rect];
    [UIView commitAnimations];
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:46:11+00:00Added an answer on May 28, 2026 at 12:46 am

    Try cleaning your project (in Xcode do Product>clean) and deleting the app from your device.

    Build and run again.

    Your app doesn’t control where the keyboard is drawn on screen so it wouldn’t have anything to do with your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I self-sign an iPhone application using Xcode? I have done the following:
I have an application written using the M-V-VM approach. The data access is done
I have an old client side application that is writing to named pipes using
I'm trying to start unit testing on my application (should have done so from
What needs to be done to have your .NET application show up in Window's
I have question related to what is done in SMS application is if i'm
I have an application that is already using the Spring Framework and Spring JDBC
Hi i have a couple of question about using named pipes. Firstly, when trying
In my application, I have a Reflection.PropertyInfo variable named 'property'. When I do a
I have created an app using a badly named database, all alterations to important

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.