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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:09:17+00:00 2026-06-10T06:09:17+00:00

so i recently decided to join iOS development,mainly because i love to extend my

  • 0

so i recently decided to join iOS development,mainly because i love to extend my knowledge across multiply platforms, and as i already know java and wrote an android app, iOS was the next step.

So my question would be this:
In a table i use a custom tablesource to react to a click on a row with a new view being loaded. Now in that view,i want to add a back button to return to the previous view.

   PointF locationOne = new PointF (5, 5);
    PointF locationTwo = new PointF (5, 100);
    SizeF size = new SizeF (120, 40);

    RectangleF tView = new RectangleF (locationOne, size);
    RectangleF tView2 = new RectangleF (locationTwo, size);
        UILabel l1 = new UILabel(){Text = "LOOL",Frame=tView};

        UIButton backbutton = new UIButton(){
            Frame=tView2
        };
        backbutton.Frame = tView2;
        backbutton.TitleLabel.Text = "Zurueck";
        backbutton.Hidden = false;

        UIView previousview = viewController.View;
        backbutton.TouchDown += (sender, e) => { 
            viewController.View = previousview;
        };

        UIView v = new UIView();
        v.AddSubview(l1);
        v.AddSubview (backbutton);


        viewController.View = v;

this would be my code right now. the label is being displayed, the button isn’t. is there something i’m missing?

Thanks already 🙂

  • 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-10T06:09:18+00:00Added an answer on June 10, 2026 at 6:09 am

    The UIView v has no frame. You need to set it to the frame of the parent controller (maybe v.Frame = viewController.View.Frame;). Then, swap out the view of viewcontroller.

    Edit:

    The initialization of UIButton is not right. Here’s how to create a regular button:

    PointF locationOne = new PointF (5, 5);
    PointF locationTwo = new PointF (5, 100);
    SizeF size = new SizeF (120, 40);
    
    RectangleF tView = new RectangleF (locationOne, size);
    RectangleF tView2 = new RectangleF (locationTwo, size);
    UILabel l1 = new UILabel (){Text = "LOOL",Frame=tView};
    
    UIButton backbutton = UIButton.FromType(UIButtonType.RoundedRect);
    backbutton.Frame = tView2;
    backbutton.SetTitle("Zurueck", UIControlState.Normal);
    
    UIView previousview = viewController.View;
    backbutton.TouchUpInside += (sender, e) => { 
        viewController.View = previousview;
    };
    
    UIView v = new UIView ();
    v.BackgroundColor = UIColor.White;
    v.AddSubview (l1);
    v.AddSubview (backbutton);
    viewController.View = v;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently decided to try some java web development, so I installed xampp, the
I recently decided to try emacs for java development, so this is the first
I've recently decided to brush up my C knowledge (what little of it I
I recently decided to go into WP7 app development, but haven't actually started learning
I'm a C# developer who has just recently decided to expand my knowledge of
I recently decided to use Apache HTTPD (on CentOS - RPM version httpd-2.2.3-45.el5.centos) with
Background info: I've recently decided to take on a project of making a social
i am quite familiar with Smarty and recently decided to use Zend framework in
I've been working with some event handling in Javascript and recently decided to migrate
The software group I currently work in has recently decided to start documenting our

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.