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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:18:10+00:00 2026-06-18T12:18:10+00:00

I looked at the Monotouch.dialog stuff and it’s pretty awesome. However, it has some

  • 0

I looked at the Monotouch.dialog stuff and it’s pretty awesome. However, it has some limitations. I was hoping to be able to create my app without having to use Xib files, but I’m not sure how to do that. Without MonoTouch dialog and xib files…. I don’t know any other way.

Could anyone point in the right direction?

  • 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-18T12:18:12+00:00Added an answer on June 18, 2026 at 12:18 pm

    I didn’t know how to do this for the longest time, but it’s simpler than you would think! Just add a regular C# class (you don’t need to use any of the special templates), import the MonoTouch.Foundation and MonoTouch.UIKit namespaces, and make your new class a subclass of UIViewController.

    It’s that simple! You’ll want to override the usual methods like ViewDidLoad, but that should be enough to get you started. As far as implementing a UI without using a .xib, just create everything programatically, set the frame, and add it to the view (and of course customize it with properties/methods and such)!

    You would set it up something like:

    // Table setup
    var VersesTable = new UITableView ()
    {
        Frame = new RectangleF (0, 0, View.Bounds.Width, View.Bounds.Height - 93),
        BackgroundColor = UIColor.FromPatternImage (Images.BackgroundTexture),
    };
    View.AddSubview (VersesTable);
    

    The hardest part of doing this is getting the frame and everything setup (imo).

    There is also some real-life code of not using .xibs and using MonoTouch.Dialog at the Github page for TweetStation. https://github.com/migueldeicaza/TweetStation/blob/master/TweetStation/Dialogs/Settings.cs

    In the Xamarin Forums, there is a post detailing some more examples of using purely C# code (no .xibs) that is very helpful!

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

Sidebar

Related Questions

I looked through some code and noticed that the convention was to turn pointer
I am wishing to seamlessly loop mp3's for an app written in MonoTouch using
Looked around, couldn't find this specific question discussed. Pretty sure the difference is negligible,
Looked at some other similar answers on stack overflow, but no relevant answer was
I want to add some standalone description text into a MonoTouch DialogViewControlle r section.
I am using MonoTouch.Dialog's OwnerDrawnElement, but it doesn't seem to allow the user to
I'm writing an application for the iPhone in MonoTouch, and I have some performance
I looked around but haven't been able to find the answer to this question.
I looked through Stackoverflow and found almost identical question here . It was asked
I looked through other questions and couldn't find what I needed. Best if I

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.