you override the method -drawRectfor UIViewto make a direct drawing on the screen. However, this is often not required for many use cases. If you want, provide more detailed information about what you want to achieve. Could be more iOS.
source
share