title: How to add placeholder in UITextField?
body: <pre><code>- (IBAction)segueBut:(id)sender {
      if(_textField.text.length&gt;0&amp;&amp; _textField1.text.length&gt;0 &amp;&amp; [_textField1.text isEqual:@"zeeshan"])
      {
          NSString *textoftextfield=_textField.text;
          [ [NSUserDefaults standardUserDefaults] setObject:textoftextfield forKey:@"Name"];
          NSString *textoftextfield1=_textField1.text;
          [ [NSUserDefaults standardUserDefaults] setObject:textoftextfield1 forKey:@"Password"];
          [self performSegueWithIdentifier:@"segueidentifier" sender:self];
      }
      else
      {
          UIAlertView *alert= [[UIAlertView alloc]initWithTitle:@"Error" message:@"Insert Username and password Textfield is empty"   delegate:nil cancelButtonTitle:@"cancel" otherButtonTitles:@"OK", nil];
          alert.delegate=self;
          [alert show];
      }
  }
  </code></pre>