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 convert a UIView to an image

I want to convert a UIView to an image and save it in my app. Can someone please tell me …

ios swift uiview screenshot
How to disable touch input to all views except the top-most view?

I have a view with multiple subviews. When a user taps a subview, the subview expands in size to cover …

iphone ios cocoa-touch uiview user-interaction
Determine if UIView is visible to the user?

is it possible to determine whether my UIView is visible to the user or not? My View is added as …

iphone uiview uitabbarcontroller visibility nstimer
How to center a UILabel on UIView

How can I center the UILabel on the UIView? I am using the following code float width = weatherView.bounds.size.…

ios uiview uilabel
Event handling for iOS - how hitTest:withEvent: and pointInside:withEvent: are related?

While most apple documents are very well written, I think 'Event Handling Guide for iOS' is an exception. It's hard …

ios uiview uikit
iOS: How does one animate to new autolayout constraint (height)

I've never worked with autolayout constraints before. I have a small new app I'm working on and noticed that the …

ios uiview autolayout nslayoutconstraint
CALayers didn't get resized on its UIView's bounds change. Why?

I have a UIView which has about 8 different CALayer sublayers added to its layer. If I modify the view's bounds (…

iphone ios objective-c uiview calayer
xcode/iOS: Autoresize to fill a view - explicit frame size is essential?

I would like a UITextView to fill its superView, which is a plain UIView inside a UIViewController instance. It seems …

xcode ios uiview autoresize autoresizingmask
addSubview animation

I have main UIView where I display different data. Then I put a button, which displays subview like this: - (…

iphone animation uiview
UIlabel layer.cornerRadius not working in iOS 7.1

I'm currently looking at a UILabel with the property addMessageLabel.layer.cornerRadius = 5.0f; On a device with iOS 7.0 installed, it …

ios uiview ios7 uilabel cornerradius