lundi 29 décembre 2014

UIView from xib is blurred

I am facing a weird issue. I have a custom UIView, which has an associated xib file. Am using the following method to load the view from xib.



- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
Class class = [self class];
NSString *nibName = NSStringFromClass(class);
NSArray *nibViews = [[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil];

self = [nibViews objectAtIndex:0];
}
return self;
}


but the view being added in my View Controller is blurred. enter image description here


Am not sure what I am doing wrong.




Aucun commentaire:

Enregistrer un commentaire