Top "Uiviewcontroller" questions

The UIViewController class manages the views in iOS apps and mediates the interaction between an app's views, its underlying model objects, and the overall workflow.

How do I make a modal date picker that only covers half the screen?

I want to have the same effect as the birthday date setter in the iPhone contacts app. How do I …

iphone uiviewcontroller modalviewcontroller uidatepicker
Adding a UINavigationController as a subview of UIView

I'm trying to display a UILabel on top of a UINavigationController. The problem is that when I add the UILabel …

cocoa-touch uiview uiviewcontroller uinavigationcontroller subview
why is my UIView subview not rendering within the parent? (code attached)

Why is my custom UIView not rendering within the UIView container of it's parent? So what I have is: MainViewController …

iphone ios uiview uiviewcontroller addsubview
Swipe to change views

Is the following easy to code? I have a tableview and when the user selects a cell a detail view …

iphone uitableview uiviewcontroller uipagecontrol swipe
UIViewController -dealloc method not called

I am working with Automatic Reference Counting. I have a custom UIViewController subclass and whenever I call -presentViewController: animated:completion: …

ios objective-c uiviewcontroller automatic-ref-counting dealloc
How to make app fully working correctly for autorotation in iOS 6?

In iOS6, shouldAutorotateToInterfaceOrientation is deprecated. I tried to use supportedInterfaceOrientations and shouldAutorotate to make app working correctly for autorotation but …

ios uiviewcontroller ios6 autorotate
How to set parentViewController in UIViewController?

The parentViewController property of UIViewController is readonly, but I am nesting custom view controllers and would like to use this …

iphone cocoa-touch uiviewcontroller hierarchy parentviewcontroller
Set background image in UIViewController (MonoTouch)

I have a screen called HomeScreen which implements UIViewController. I wish to use a background image for this screen. Is …

iphone uiviewcontroller xamarin.ios monodevelop
Call a method from AppDelegate - Objective-C

I was trying to call an existing method of my ViewController.m from AppDelegate.m inside the applicationDidEnterBackground method, so …

ios iphone objective-c uiviewcontroller appdelegate
Getting reference to the view of a container view

I am new to iOS App Development. I have connected a tableview controller such that when I select one of …

ios objective-c uiviewcontroller segue uistoryboardsegue