My login view has a subview which has a
view.layer.cornerRadius = 5; view.layer.masksToBounds = YES;
Note: If you are trying to apply rounded corners to a
UIViewController's view, it should not be applied in the view controller's constructor, but rather in
view is actually instantiated.