title: Objective-C: how to pass parameter to method
body: <pre><code>int land4Random = arc4random_uniform(3);
  if (land4Random == 0)
  {
      Land4.image = [UIImage imageNamed: @"GoodLandBR.jpg"];
  }
  if (land4Random == 1)
  {
      Land4.image = [UIImage imageNamed: @"DeadLand.jpg"];
  }
  </code></pre>
  
  <p>I would like to use this block of code many times, but i do not know how to make method of it.</p>