40media How build a custom control in Xcode for the iPhone SDK?


How build a custom control in Xcode for the iPhone SDK?



I want to build a custom control to reuse in my project which consists of two UITextFields that are linked together + a label.

It is starting to become repetitive across my App and smells of code duplication ;)

However, I wonder what is the best aproach here.

Is it best do everything by code in a controller or is posible do a visual thing like the ones built-in in Xcode?


“EXC_BAD_ACCESS” error when cell begins scrolling back in view?

1:

Button not removed with removedFromSuperVire
You must build an Interface Builder plug-in for this. Future of Mobile Development [closed]It's fairly straight-forward. Manage user's session on a web server for an iPhone app user [closed]To receive started, read the Interface Builder Plug-In Programming Guide. UIProgressBar loading NSMutableDictionaryIt even has a quick, step-by-step tutorial to receive you started. Prompting and Delegate questionApple recommends creating a plug-in to IB for just your case.... Results for performSelector: differ from standard dot notation call?
How to add a breakpoint to objc_exception_throw?

2:

I don't think this is possible. I briefly looked at the IB Plug-In Programming Guide and apparently Interface builder plugins are implemented through Custom Cocoa Frameworks. That is, your plugin is defined in a framejob which is loaded in Interface Builder. IB looks in the current projects frameworks to find any custom components defined and will load plugins accordingly. It is not possible to use custom or third party frameworks on the iPhone so I don't see how IB would make a connection here. If any body has more info I'd love to see this discussion continued..

3:

This is fine except it is for the iPhone. The iPhone presents a more difficult environment to create the plug-in for interface builder. It should be possible although I have yet to see a Xcode project this does this. They are all limited to creation of desktop "AppKit" versions, not iPhone "UIKit" versions of the plugins for IB..


68 out of 100 based on 43 user ratings 938 reviews