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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:56:12+00:00 2026-05-20T04:56:12+00:00

a designer here, coding newb. I just created a mockup in photoshop, (a dashboard

  • 0

a designer here, coding newb. I just created a mockup in photoshop, (a dashboard that shows graphs, with fancy sliders, drag drop, modal box) and want to make a prototype in monotouch, especially with the interface builder, but i got a problem with the screen orientation. i want to force it to landscape mode. I created a ViewController and place a ImageViewer inside in with the background and set it to landscape mode, but it still is portrait mode, even if it’s forced to landscape mode. Also used the code

public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation)
{
    return ((toInterfaceOrientation == UIInterfaceOrientation.LandscapeLeft) || (toInterfaceOrientation == UIInterfaceOrientation.LandscapeRight));
}

How would you start this project if you’re looking at the mockup images? For me as a designer i want to add a background as main viewer and all the other boxes as subviewers in the interface builder so that a developer can code, but i’m kinda stuck with the forced landscape and i’m not sure how to proceed with the subviewers connecting with the main view, and if pressed on a subviewer a modal box will appear.

I have added screenshots of the mockup and the files.

Screenshot, downloading link

  • 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-20T04:56:13+00:00Added an answer on May 20, 2026 at 4:56 am

    Ok, there are several things you have done wrong. Read on:

    In MonoDevelop:

    1. Remove the RegisterAttribute from the MyViewController class. It will be added automatically in its partial declaration after you compile.

    2. Add the partial modifier in the class declaration:

      public partial class MyViewController : UIViewController

    3. Add the following constructor in it:

      public MyViewController(IntPtr handle) : base(handle) {}

    In Interface Builder:

    1. Disconnect and remove all the outlets you have set. They are wrong because you have set the same outlet for the controller AND the image view.

    2. Add an outlet in the AppDelegate class for the controller (eg. myController). Connect it with your controller.

    3. Add an outlet in MyViewController named “view” and connect it with the image view.

    4. MOST important: in the Identity tab of MyViewController, set its class name to… MyViewController.

    After that, it will work correctly.

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

Sidebar

Related Questions

my designer passed me a look that I would love to be able to
I noticed that my Designer.vb file of one of my forms has a lot
Is there any designer for rdl files (visual studio .net reports) that can be
I have a program that shows data in a datagridview. The data in the
Here's the deal: I have a report designer where users can create reports based
Here my designer change the way to use anchor tag in html template, so
With reference to the below mentioned code block (Designer- .ASPX), I am trying here
Please see designer's picture: Now see what I'm getting: Here is my layout: <LinearLayout
Google is failing me here. I have a designer who needs desperately to have
Here's my predicament. I'm working with a designer who has a very unique layout

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.