I am very new for iOS and in my app I am loading UIView
xib file in my mainView controller and here in this xib file i have inserted one UITextField
but when i insert text in that text it's not applying please help me.
mainViewController:-
#import "ViewController.h"
@interface ViewController ()
{
FirstView * test1;
}
@end
@implementation ViewController
@synthesize rightView;
- (void)viewDidLoad {
[super viewDidLoad];
test1 = [[[NSBundle mainBundle] loadNibNamed:@"FirstView" owner:self options:nil] objectAtIndex:0];
test1.frame = CGRectMake(0, 0, rightView.frame.size.width, rightView.frame.size.height);
test1.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
[rightView addSubview:test1];
}
UIview xib class:- =-------
#import "FirstView.h"
@implementation FirstView
@synthesize textview;
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
if (self = [super initWithCoder:aDecoder]) {
[self loadingView];
}
return self;
}
-(instancetype)initWithFrame:(CGRect)frame{
if (self = [super initWithFrame:frame]) {
[self loadingView];
}
return self;
}
-(void)loadingView{
textview.text = @"You are required to call in advance to schedule transportation. Time frame requirements are 48 hours for Anthem and 72 hours for MHS.\n\nYou will always need the Medicaid and Social Security number of the member who has an appointment.\n\nAll eligible members can schedule appointments up to 45 days in advance. For example, if you have existing appointments within the next 6 weeks from the current calendar date, you can schedule transportation to those appointments today.\n\nThere is only 1 adult allowed per trip. Any additional riders will need to be verified “medically necessary” by the facility representative. If a child has an appointment both parents are allowed to ride along.\n\nYou will ALWAYS need the physical address of the facility that you are going to AND the name of the doctor you will be seeing.\n\nThere is only one pick-up and one drop-off per scheduled trip.";
}
@end