UIView

suggest change

Syntax

  1. // Objective-C
  2. [UIView new] // Get a view object allocated and initialized
  3. [[UIView alloc] initWithFrame:(Pass CGRect)] // Get the view allocated and initialized with a frame
  4. [[UIView alloc] init] // Get a view object allocated and initialized
  5. // Swift
  6. UIView() // Creates an UIView instance with CGRect.zero frame
  7. UIView(frame: CGRect) // Creates an UIView instance specifying the frame
  8. UIView.addSubview(UIView) // add an another UIView instance as subview
  9. UIView.hidden // Get or set the visibility of the view
  10. UIView.alpha // Get or set the view’s opacity
  11. UIView.setNeedsLayout() // Forces the view to update its layout

Remarks

The UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area. At runtime, a view object handles the rendering of any content in its area and also handles any interactions with that content.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


UIView:
* UIView

Table Of Contents
12 UIView
15 UIColor
26 UIImage
28 CALayer
30 NSDate
40 iBeacon
49 NSTimer
79 NSURL
87 AWS SDK
96 NSData
101 Segues
104 EventKit
105 NSBundle
106 SiriKit
111 StoreKit
117 3D Touch
119 Keychain
122 Block
141 AirDrop
144 UISlider
145 Carthage
146 HealthKit
151 plist
157 MVVM
164 UIPhoenix
166 Simulator
168 NSArray
169 OpenGL
175 Core Data
179 MyLayout
180 UIFont
189 Security
200 Codable