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.

Draw line in UIView

I need to draw a horizontal line in a UIView. What is the easiest way to do it. For example, …

ios iphone uiview
How to draw a custom UIView that is just a circle - iPhone app

How would I go about drawing a custom UIView that is literally just a ball (a 2D circle)? Would I …

iphone ios ipad uiview
Get to UIViewController from UIView?

Is there a built-in way to get from a UIView to its UIViewController? I know you can get from UIViewController …

ios objective-c cocoa-touch uiview uiviewcontroller
What's the best way to add a drop shadow to my UIView

I am trying to add a drop shadow to views that are layered on top of one another, the views …

ios uiview shadow cliptobounds
UIView bottom border?

To a UIScrollView *toScrollView (which is the width of the screen), I want to add a gray bottom border (exactly …

ios uiview border
How to add a border just on the top side of a UIView

My question is on the title. I don't know how to add a border in a specific side, top or …

ios objective-c xcode uiview border
Swift addsubview and remove it

I want to add sub view and remove with one tap. This is my code: /* To add subview */ var testView: …

ios swift uiview
What is the most robust way to force a UIView to redraw?

I have a UITableView with a list of items. Selecting an item pushes a viewController that then proceeds to do …

cocoa-touch uiview urlrequest
Simple way to change the position of UIView?

I change the position of a UIView with following codes without changing size of the view. CGRect f = aView.frame; …

ios layout uiview frame cgrect
How to fill background image of an UIView

I have an UIView and I set a background image in this way: self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"…

iphone objective-c uiview background