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

  • Home
  • SEARCH
  • 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 8845453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:44:36+00:00 2026-06-14T11:44:36+00:00

I’m working with XCode 4.5. For my current project, I need to build an

  • 0

I’m working with XCode 4.5. For my current project, I need to build an UI element similar to a textfield. Because I will have to reuse this custom element in a whole bunch of ViewControllers, I’m looking for a way to build this custom textfield in such a way that I can use it for drag & drop in the XCode interface builder, instead of adding it only programmatically (that’s what I found so far).

How can I achieve this? I’m looking for a tutorial that explains the whole process in a simple example project.

Specification:

The result I’m going for is having a custom UIView that I can use just like every other predefined UI element (such as a textfield). That means I want to be able to drag & drop it from the object library into some controller in my storyboard, edit its attributes, especially the custom ones, with the attributes inspector and get visual feedback about that changes in IB. I don’t want to subclass predefined UIViews over and over again, for two reasons:

  1. First, adding custom a subclass to predefined UI elements means more work, since I need to repeat that over and over again for every single element I need to customize. More or less the whole visual part of my app will be build of custom UI elements to match a certain design I have to implement for my client.
  2. Second and more important, I literally don’t get the picture how my UI will finally appear if I build the biggest part of it programmatically by customizing its appearance in subclasses that should hold custom functionality.
  3. Finally, I consider it a bad coding practice to break the beautiful MVC separation the iOS SDK provides by generating static UI parts of my program that will never change at runtime programmatically in the controller part.

This is why I need to design a custom UI element (let’s call its corresponding class UITextFieldCustom) that I can use in the process of designing the UI like any other premade library object such as a textfield. Is that possible?

  • 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-14T11:44:38+00:00Added an answer on June 14, 2026 at 11:44 am

    This would require having an Interface Builder plugin (IBPlugin). Unfortunately, support for this was dropped in Xcode 4 but exists in Xcode 3. It seems the documentation was removed for this from the Apple Developer Library for this feature, as well. An example of custom controls implemented using IBPlugin can be found at http://www.brandonwalkin.com/bwtoolkit/.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) 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.