Yes, you can create a UIView in nib - when you create a view-based nib, what you create is a UIView. There is no view controller (although often you create a controller of the form File Owner of the nib).
You will need to create your own view class and change the view class from xib to this custom class in order to include IBOutlets in that view. If you want to use the view in the controller, you can create it as follows:
UINib *nib = [UINib nibWithNibName:@"CustomView" bundle:nil]; CustomView *view = [[nib instantiateWithOwner:self options:nil] objectAtIndex:0];
The limitation of this method is that your outputs belong to the view class and not to the view controller, which cannot (but may be) be correct in the sense of MVC.
source share