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 541569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:21:24+00:00 2026-05-13T10:21:24+00:00

I create my own number pad view successfully and I want to simulate the

  • 0

I create my own number pad view successfully and I want to simulate the default number pad appear animated effect, but it can’t work fine, it can’t animate as default number pad, how do I modify?

I have a UITextField call “fNumber” and a custom number pad view call myNumberPadView and created by interface builder, when the “fNumber” is focued I will show the myNumberPadView animated, so I code as follow:


 - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
    if (textField == fNumber){
        CGRect frame = CGRectMake(0, 270, 320, 230);
        myNumberPadView.frame = frame;
        [UIView beginAnimations:nil context:NULL];
        [UIView setAnimationDuration:1.75];
        frame.origin.x = 0;
        frame.origin.y = 270; 
        [UIView commitAnimations];
        [self.view addSubview:myNumberPadView];
    }
    return NO;
}

The “myNumberPadView” is show as a subview, it doesn’t the “animate” effect as the default number pad, how can to make it to “animate” appear?

  • 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-13T10:21:24+00:00Added an answer on May 13, 2026 at 10:21 am

    in the animation block, just set the new frame to your custom numpad. smth like

    - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
        if (textField == fNumber){
            CGRect frame = CGRectMake(0, 480, 320, 230);
            [myNumberPadView setFrame:frame];
            [self.view addSubview:myNumberPadView];
            [UIView beginAnimations:nil context:NULL];
            [UIView setAnimationDuration:1.75];
            [myNumberPadView setFrame:CGRectMake(0, 270, 320, 230)]; 
            [UIView commitAnimations];
        }
        return NO;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create my own number pad to appear after user focus the
I create my own class which extend ScrollView but scroll bar disapear. How Can
I want to create my own SeekBar because I can't find anything like with
How can I create my own login form on frontend? I don’t just want
I want to create my own class named Point, but am running into issues
I want to create my own vending machine from scratch. But without the money
Possible Duplicate: How to create my own JavaScript Random Number generator that I can
I want to create own filetype to save objects in my app. Basically, I
We have an PHP/MySQL application where the users can create their own databases, which
I'm looking to create my own custom Sort By Date and Sort By Number

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.