UIImage unrecognized selector sent to instance
<p>I have the 'classic' error: </p>

<blockquote>
  <p>unrecognized selector sent to instance.</p>
</blockquote>

<p>If I read through other comparable questions it should be memory related, however I can't find out what I'm doing wrong.</p>

<p>Here is what I try to do:</p>

<ul>
<li>crop an image</li>
<li>give the image rounded corners</li>
</ul>

<p>I use the brilliant <a href="http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/" rel="nofollow">code of Trevor</a></p>

<p>This is my code:</p>

<p>The <code>roundedCornerImage:borderSize:</code> is giving the trouble</p>

<pre><code>NSInteger my_borderSize = 0.1;
UIImage *Image_large = [image_sel croppedImage:CGRectMake((my_width/2) -(my_height*0.66)/2, 0, my_height*0.66, my_height) ];
UIImage *roundedCornerImage_temp = [Image_large roundedCornerImage:0.8 borderSize:my_borderSize];
</code></pre>
