Last active
August 29, 2015 14:11
-
-
Save yuxiangq/71a2ac1dabac7b4fa556 to your computer and use it in GitHub Desktop.
NumberField的用法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
-(void)viewDidLoad{ | |
[super viewDidLoad]; | |
NumberField *numberField=[[NumberField alloc] initWithFrame:CGRectMake(100, 100, 120, 44)]; | |
numberField.placeholder=@"只能输入数字"; | |
//设置精度,长度为10,小数点位数为4的苏子。 | |
numberField.numeric=CGNumeric(10, 4); | |
[self.view addSubview:numberField]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment