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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:21:24+00:00 2026-06-09T03:21:24+00:00

I have created a view in my view controller i want that when i

  • 0

I have created a view in my view controller i want that when i load that subview or show that it may laod from left to right of the orignial view controller

 subView = [[UIView alloc] initWithFrame:CGRectMake(20, 125, 560,530)];

[subView setBackgroundColor:[UIColor colorWithRed:216./255 green:238./255 blue:209./255 alpha:1.0]];


UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
backButton.frame = CGRectMake(40,20, 169,42);
UIImage*btnImage = [UIImage imageNamed:@"back.PNG"];

[backButton setImage:btnImage forState:UIControlStateNormal];

[backButton addTarget:self action:@selector(backButtonClicked:) forControlEvents:UIControlEventTouchUpInside];

[subView addSubview:backButton];

[self.view addSubview:subView];

I want to open this view on button click i want that when button is clicked this view should come on screen sliding from left to right as normally new view controller opens.

  • 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-06-09T03:21:26+00:00Added an answer on June 9, 2026 at 3:21 am
    subView = [[UIView alloc] initWithFrame:CGRectMake(320, 125, 560,530)];
    
    [subView setBackgroundColor:[UIColor colorWithRed:216./255 green:238./255 blue:209./255 alpha:1.0]];
    
    
    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
    backButton.frame = CGRectMake(40,20, 169,42);
    UIImage*btnImage = [UIImage imageNamed:@"back.PNG"];
    
    [backButton setImage:btnImage forState:UIControlStateNormal];
    
    [backButton addTarget:self action:@selector(backButtonClicked:)     forControlEvents:UIControlEventTouchUpInside];
    
    [subView addSubview:backButton];
    
    [self.view addSubview:subView];
    

    On button click write code given below in function

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.5];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
    subView.frame = CGRectMake(20, 125, 560,530);
    [UIView commitAnimations];
    

    Use this. hope helps

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

Sidebar

Related Questions

I have created a table view with navigation controller. I want to link table
I have created a custom view hierarchy in an XIB that I want to
I have created model, controller and view with rails scaffold generator: rails g scaffold
In a word, how? I have a view controller that creates a few custom
If i have a controller action Create that returns a view with the following
I have some text data from database that I want to display it on
I want to create a footer view in my table view.I have created view
This is a weird issue. I have created a view controller with a nib
I have a couple of view controllers that I want all to share a
I have created a main View and in that I add 9 UIMyView that

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.