Adding view to storyboard programatically?

A quick question, I am loading a viewController via a storyboard segue and I want to add a UIImageView to the controller programatically (instead of creating it in the storyboard). Usually when working without a Storyboard or NIB I would do this in loadView: is there an appropriate place for this when using storyboards or does the storyboard drop you in a bit late in the day for that?

EDIT: Updated error regarding NIB and loadView:

Answers


If you're using a NIB you shouldn't really be adding anything using loadView:. You should be using viewDidLoad:. This also works when using Storyboards.


Need Your Help

Get children from gtk.ScrolledWindow

gtk pygtk

i have Window and gtk.ScrolledWindow on it, and gtk.TextView in this scrooledWindow. How can i get textview?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.