Update UIView.m

fixed check