In my project, I have two UIViewController
s in a tab bar application, each one contains a UITableView
which displays information from RSS feeds. The two view controllers are supposed to be perfectly identical, except for a single NSString
parameter (the feed URL).
I know that I can simply copy and paste the code from one UIViewController
to another, but I was wondering if there is a better way to do this. I'm not sure if I'm phrasing this correctly, but I think I want to create a separate file which contains a UIViewController
"instance" and apply that instance to each view controller in my app.
I'm wondering if something like I'm asking for is possible, and how it would be done.