Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. self.textField = [[UITextField alloc] initWithFrame:CGRectMake(50, 292, 50, 40)];
  2. [self.textField becomeFirstResponder];
  3. self.textField.delegate = self;
  4. [self.view addSubview:self.textField];
  5.  
  6.  
  7. UIButton *topViewonTextField = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight)];
  8. topViewonTextField.backgroundColor = [UIColor clearColor];
  9. [topViewonTextField setEnabled:NO];
  10. //topViewonTextField.layer.zPosition = 100;
  11. [self.view addSubview:topViewonTextField];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement