SingleLineInput
SingleLineInput copied to clipboard
How to create SingleLineTextField programmatically
How to create SingleLineTextField programmatically
-
(SingleLineTextField *) firstnameTf { if (!firstnameTf) { firstnameTf = [[SingleLineTextField alloc] initWithFrame:CGRectMake(0, 5, SCREEN_WIDTH - 50, 30)]; firstnameTf.center = CGPointMake(SCREEN_WIDTH/2, 15); firstnameTf.placeholder = @"Овог"; // firstnameTf.font = [UIFont fontWithName:LIGTHFONT size:16]; // firstnameTf.textAlignment = NSTextAlignmentCenter; // [firstnameTf setBorderStyle:UITextBorderStyleRoundedRect]; [firstnameTf setInputTextColor:[UIColor blueColor]] ; [firstnameTf setLineSelectedColor:[UIColor greenColor]];
} return firstnameTf; }
NOt running this code