title: IOS align text placeholder to be in the center and left alignment
body: <p>I'm creating an IOS form that submits feed back.</p>
  
  <p>I want to have placeholder text to be in the center vertically and left alignment horizontal in the text field</p>
  
  <p>I have tried this</p>
  
  <pre><code>- (void)drawPlaceholderInRect:(CGRect)rect {
      [RGB(36, 84, 157) setFill];
  
      UIFont *font = [UIFont SingPostLightItalicFontOfSize:_placeholderFontSize fontKey:kSingPostFontOpenSans];
      NSMutableParagraphStyle *paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
      paragraphStyle.lineBreakMode = NSLineBreakByWordWrapping;
      paragraphStyle.alignment = NSTextAlignmentLeft;
      NSDictionary *attributes = @{ NSFontAttributeName: font,
                                    NSParagraphStyleAttributeName: paragraphStyle,
                                    NSForegroundColorAttributeName: [UIColor blackColor]};
      [[self placeholder] drawInRect:rect withAttributes:attributes];
  
  }
  </code></pre>
  
  <p>But the place holder text is on top vertical. How can we achieve the gold. Thanks a lot </p>
  
  <p><a href="https://i.stack.imgur.com/EHOZa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EHOZa.png" alt="enter image description here"></a></p>