SingleLineInput icon indicating copy to clipboard operation
SingleLineInput copied to clipboard

How to create SingleLineTextField programmatically

Open Davaajargal opened this issue 9 years ago • 0 comments

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

Davaajargal avatar Apr 20 '16 23:04 Davaajargal