KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
As a new iOS developer I am trying to determine the best approach to creating reusable controls in iOS4+. For example if I wanted to create a customized UIImageView that could be used in multiple other views what is the best approach. I have created the control including the following files: MyImageViewController.h MyImageViewController.m MyImageViewController.nib Assume that I want a control that utilizes a .nib file. How would I do the following: Create an instance of the custom control in another view, programmatically and via IB? How do I structure the custom control so it can expose "events", e.g., ontouch? How do I structure the custom control so I can call actions/methods, e.g., loadImage()? Any insights or reference appreciated. Thanks
Tags (comma-separated)
Save Edits
Cancel