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.

Completion block for popViewController

When dismissing a modal view controller using dismissViewController, there is the option to provide a completion block. Is there a …

ios cocoa-touch uiview uiviewcontroller uiviewanimation
IOS7 Status bar hide/show on select controllers

I would like to show and hide the Status bar on some controllers. Can this be done or is it …

ios uiviewcontroller ios7 statusbar uistatusbar
How to force layoutSubviews of UIView.

I have a custom UIView which has a dedicated, manually set frame for portrait and landscape orientation because autoresizingMasks just …

ios iphone uiview uiviewcontroller layoutsubviews
Touch events on UITableView?

I have UIViewControllerand UITableView as child in the view, what I want to do is when I touch any row …

iphone uitableview uiviewcontroller touches
Why can't I call the default super.init() on UIViewController in Swift?

I am not using a UIViewController from a storyboard and I want to have a custom init function where I …

ios objective-c uiviewcontroller swift ios8
iOS viewDidLoad for UIView

In a ViewController, there is ViewDidLoad to know when the VC has loaded. For a UIView, what method do i …

ios uiview uiviewcontroller
How to get UIScrollView vertical direction in Swift?

How can I get the scroll/swipe direction for up/down in a VC? I want to add a UIScrollView …

ios swift cocoa-touch uiviewcontroller uiscrollview
iPhone how to check the type of an Object?

I want to check the type of an Object. How can I do that? The scenario is I'm getting an …

iphone uiview uiviewcontroller
How add tabs programmatically in UITabBarController with swift?

How to create programmatically tabs from any class extended by UIViewController: class DashboardTabBarController: UITabBarController { override func viewDidLoad() { //here } ... }

swift uiviewcontroller tabs uitabbarcontroller
How to get the previous viewcontroller that pushed my current view

The home page of my app has UIButtons, btnIncome and btnExpense. Pressing on this buttons pushes IncomeVC and ExpenseVC respectevely,…

iphone uiviewcontroller uinavigationcontroller uitabbarcontroller