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.

How to add constraints programmatically using Swift

I'm trying to figure this out since last week without going any step further. Ok, so I need to apply …

ios swift uiview autolayout nslayoutconstraint
How to add a touch event to a UIView?

How do I add a touch event to a UIView? I try: UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.…

ios objective-c events uiview touch
Giving UIView rounded corners

My login view has a subview which has a UIActivityView and a UILabel saying "Signing In…". This subview has corners …

ios cocoa-touch uiview
UIView with rounded corners and drop shadow?

I’ve been working on an application for a couple of years and received a simple design request: Round the …

ios cocoa-touch uiview calayer rounded-corners
How to set cornerRadius for only top-left and top-right corner of a UIView?

Is there a way to set cornerRadius for only top-left and top-right corner of a UIView? I tried the following, …

ios cocoa-touch uiview cornerradius
How to tell if UIViewController's view is visible

I have a tab bar application, with many views. Is there a way to know if a particular UIViewController is …

ios uiview uiviewcontroller uiwindow
Programmatically create a UIView with color gradient

I'm trying to generate a view with a gradient color background (A solid color to transparent) at runtime. Is there …

ios uiview uicolor
UIView frame, bounds and center

I would like to know how to use these properties in the right manner. As I understand, frame can be …

objective-c ios uiview frame bounds
How to set iPhone UIView z index?

I want to move one view on top of another, how can I know the z index of the view, …

ios uiview position z-index
iPhone UIView Animation Best Practice

What is considered best practice for animating view transitions on the iPhone? For example, the ViewTransitions sample project from apple …

iphone ios cocoa-touch uiview core-animation