摘要:
1.创建01.UITextField* textField = [[UITextField alloc]initWithFrame:CGRectMake(50, 100, 200, 50)]; 2.设置委托//委托类需要遵守UITextFieldDelegate协议 01.textField.delegate = self;3.设置属性UIControl属性对UITextField完全可以用,下面的都是UITextField扩展的属性//默认就是左对齐,这个是UITextField扩展属性 01.textField.textAlignment = UITextAlignmentLeft;... 阅读全文
摘要:
1 self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(left)];2 3 self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self... 阅读全文