title: Need a tip with UIBezierPath. Triangle Shape like Instagram Sign Up View
body: <p>I'm trying to create a bezier path like the instagram triangle in the picture below, however I must be doing something wrong. The Bezier path does not show!</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  // Do any additional setup after loading the view.
  
  }
  
  -(void)viewDidLayoutSubviews{
  [super viewDidLayoutSubviews];
  
  [self drawTriangle];
  
  }
  
  - (IBAction)closeButton:(UIButton *)sender {
  [self dismissViewControllerAnimated:YES completion:nil];
  }
  
  - (void)drawTriangle{
  
  UIBezierPath* trianglePath = [UIBezierPath bezierPath];
  [trianglePath moveToPoint:CGPointMake(self.signUpButton.center.x, self.signUpButton.frame.origin.y + 30)];
  [trianglePath addLineToPoint:CGPointMake(self.signUpButton.center.x - 10, self.imageView.frame.size.height)];
  [trianglePath addLineToPoint:CGPointMake(self.signUpButton.center.x + 10, self.imageView.frame.size.height)];
  
  UIColor *fillColor = [UIColor whiteColor];
  [fillColor setFill];
  UIColor *strokeColor = [UIColor whiteColor];
  [strokeColor setStroke];
  
   [trianglePath fill];
  [trianglePath stroke];
  
  [trianglePath closePath];
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/DJYMH.png" alt="enter image description here"></p>