Top "Uiview" questions

UIView is a class in the UIKit framework of iOS defines a rectangular area on the screen and the interfaces for managing the content in that area.

Given a view, how do I get its viewController?

I have a pointer to a UIView. How do I access its UIViewController? [self superview] is another UIView, but not …

ios iphone debugging uiview uiviewcontroller
iPhone - Get Position of UIView within entire UIWindow

The position of a UIView can obviously be determined by view.center or view.frame etc. but this only returns …

iphone cocoa-touch ios uiview uiwindow
Load view from an external xib file in storyboard

I want to use a view throughout multiple viewcontrollers in a storyboard. Thus, I thought about designing the view in …

ios uiview storyboard xib
How to add an UIViewController's view as subview

Note to googlers, this Q-A is now six years out of date! As Micky below and others mention, this is …

iphone uiview uiviewcontroller
Bringing a subview to be in front of all other views

I am working on integrating an ad provider into my app currently. I wish to place a fading message in …

ios uiview subview
How to add a footer to the UITableView?

I'me using this code to add a footer to the TableView. It has 20 sections, and each section a few rows. …

iphone uitableview uiview footer
Move UIView up when the keyboard appears in iOS

I have a UIView, it is not inside UIScrollView. I would like to move up my View when the keyboard …

objective-c ios xcode uiview uiviewcontroller
How do I write a custom init for a UIView subclass in Swift?

Say I want to init a UIView subclass with a String and an Int. How would I do this in …

ios swift cocoa-touch uiview instantiation
How do I apply a perspective transform to a UIView?

I'm looking to perform a perspective transform on a UIView (such as seen in coverflow) Does anyonew know if this …

ios cocoa-touch uiview core-animation calayer
UIView's frame, bounds, center, origin, when to use what?

UIView has the properties frame, bounds, center, and origin, and they all seem to be interrelated. Most of the time, …

uiview uikit frame bounds