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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:52:11+00:00 2026-05-30T05:52:11+00:00

I have added a XIB based UIViewController to my solution and dragged some UIViews

  • 0

I have added a XIB based UIViewController to my solution and dragged some UIViews into it.
Now I want some of the views not to be UIView but RoundedRectView
(https://github.com/Krumelur/RoundedRectView) which inherits from UIView.

How to achieve this? I tried to change the class in Interface Builder but that did nothing. Then I manually modified the designer.cs file but that resulted in a failure.
Then I tried modifying the fake ObjC code but that failed too.

(I’m using Xcode 4.2 and MD 2.8.6.4)

  • 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-30T05:52:12+00:00Added an answer on May 30, 2026 at 5:52 am

    Your view subclass needs at least two things:

    1. Register attribute

      [Register("MyView")]

      public class MyView : UIView {}

    2. IntPtr constructor

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

    You then open the XIB in Interface Builder, add a UIView and set its Class in the Identity Inspector to the name you passed to the Register attribute. When you connect it to an outlet, you will see that it has the correct type.

    Outlet with correct type

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

Sidebar

Related Questions

i have added 2 views in my .xib file. Both are declareted in .h
I have a xib in which I have added a UIViewController named delta. The
I have a UIView that gets created and added as a subview dynamically, not
I have a UIViewController with an xib and using Interface Builder I've added a
I have added some code which compiles cleanly and have just received this Windows
I have added some dynamic textboxes upon a button click. I need the values
I have added some settings to my c# application using the configuration editor. There
I have a view based app that works well. (In other words, I'm not
I have a navigation based application that have a uinavigataioncontroller containing uitableviewcontrollers. I want
I have added an NSOpenGLView to my MainMenu.xib file, and have implemented drawRect to

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.