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 does clipsToBounds work?

I would like to know how to use the UIView property clipsToBounds. The official documentation says the following: clipsToBounds property …

ios uiview uikit frame bounds
Rotate UIView around its center keeping its size

I'm trying to rotate an UIView a few radians but after applying the transformation it doesn't look to be keeping …

ios objective-c uiview rotation
iOS: UIView subclass init or initWithFrame:?

I made a subclass of UIView that has a fixed frame. So, can I just override init instead of initWithFrame:? …

ios uiview uikit subclass init
Proper practice for subclassing UIView?

I'm working on some custom UIView-based input controls, and I'm trying to ascertain proper practice for setting up the view. …

ios objective-c cocoa-touch uiview
How do you draw a line programmatically from a view controller?

I have a UIViewController. How do I draw a line in one of its programmatically created views?

ios objective-c uiview uikit
Avoid animation of UICollectionView after reloadItemsAtIndexPaths

UICollectionView animate items after reloadItemsAtIndexPaths is called (fade animation). Is there a way to avoid this animation? iOS 6

ios animation ios6 uiview uicollectionview
What is the correct way to remove a subview from a view hierarchy and nuke it?

I have a parent UIView with a number of subviews. Periodically I need to remove a subview and completely remove …

ios cocoa-touch uiview subview
Use autolayout to set dynamic UIView to match container view

I have a UIView in IB that has another UIView within it, which I am using as a container view. …

ios uiview autolayout resize
Assign xib to the UIView in Swift

in objective c it can be done in init method by -(id)init{ self = [[[NSBundle mainBundle] loadNibNamed:@"ViewBtnWishList" owner:0 …

uiview swift xib
How to get the actual [UIScreen mainScreen] frame size?

I'm a bit annoyed. I have an app with the statusbar visible in the main window. Since I would like …

uiview frame uiapplication