O'Reilly logo

Xamarin Mobile Application Development for iOS by Paul F. Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Views and View Controllers

They sound similar, but they're not. The simplest way to think of a View Controller and a View is like a web page. A typical web page is a piece of information served up from a server. The content may be created dynamically (say from a database query), but for the user it's just data. This would be considered as a View. It has things on it, but no real user interaction.

A View Controller is closer to a web page constructed using ASP.net, or some other form of language that feeds back to a server (such as PHP). The website has a button on it. The button has an event, which is then fed back to the code (known as the handler code) behind the button. The View created using Xcode is the web page, and the source file with a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required