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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:57:59+00:00 2026-05-26T23:57:59+00:00

I have got a view controller with a UIView and a navigation controller configured

  • 0

I have got a view controller with a UIView and a navigation controller configured in the XIB.

Now I created a custom UIView and would like it to be on top of the other view. So I added a view on top of the first and changed the class to mine (DrawableUIVIew). None of the stuff I alter or set inside my custom view appears.

This is how I add my custom view:

Screenshot of xib layout

The custom UIView allows touches (which do get detected) and then draws lines (which does not happen).
Only way I could get it to draw was to use:

self.view = [[DrawableUIView alloc] init];

but that removes the nav bar and is thus useless.

How can I add a custom UIView above the view controller’s standard view in the visual editor?

  • 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-26T23:58:00+00:00Added an answer on May 26, 2026 at 11:58 pm

    I solved this problem by simply overriding the initWithCoder:(NSCoder *)aDecoder method inside my custom UIView

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

Sidebar

Related Questions

We have got a custom MembershipProvider in ASP.NET . Now there are 2 possible
I have several uitextfields within a view and I would like to disable the
I have a picker view in a view controller page,say view controller1.Now I have
I've got a view controller that contains a @property which is a custom subclass
I have created a View controller with some methods I need to use often
In a certain view I have got different elements and I need the keyboard
I have the following problem: I got a view with two text fields and
I have a button in a view which refuses to work. I've got in
Gentleones, I've got a UIImageView that I have in a UIView. This particular UIImageView
I have a question regarding view controller navigations in Three20. I have a TTTableView

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.