I have Checked all outlets and connections all seems fine.Can some one look into it and notice the fault, if any.Basically, this custom view is displayed over a view controller when user moves out of the specified region.
// QMOutOfCountryView.m
#import "QMOutOfCountryView.h"
@implementation QMOutOfCountryView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
+(QMOutOfCountryView*)loadFromNib{
NSArray *nibArr = [[NSBundle mainBundle] loadNibNamed:@"QMOutOfCountryView" owner:self options:nil];
QMOutOfCountryView *countryView;
for (UIView * subview in nibArr) {
if ([subview isKindOfClass:[QMOutOfCountryView class]]) {
countryView = (QMOutOfCountryView *)subview;
break;
}
}
return countryView;
}
-(void)setdataOnViewWith:(int)viewType {
if (viewType == location) {
iconImage.image = [UIImage imageNamed:@"locationoff"];
messageTextView.text = kLocationViewMessage;
} else if (viewType == outOfCountry) {
iconImage.image = [UIImage imageNamed:@"illustration"];
messageTextView.text = kOutOfCountryViewMessage;
}
messageTextView.textColor = [UIColor blackColor];
messageTextView.font = [UIFont fontWithName:@"SFUIDisplay-Light" size:16.0f];
}
@end