title: Single line if statement Objective-c
body: <p>How would one go about writing a one line if statement in objective-c? Is there a proper style for this?</p>
  
  <p>I know of the ternary operator used for assignment (<code>int a = condition ? b : c</code>) but say I wanted to call a method is <code>if(condition){ [self methodCall]; }</code> the recommended way of dealing with this in one line?</p>
  
  <p>In addition are there any objc style guides out there? (Think comparable to <a href="https://github.com/bbatsov/ruby-style-guide" rel="noreferrer">this ruby style guide</a>) Coming back to a language after a while of not touching it makes me want to rethink how I style my code.</p>