Custom UIButton image iOS
Is it possible to have a custom UIButton that has an image covering only half of it?
I imagine it would be something like this:

    UIButton *someButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [someButton setBackgroundImage:[UIImage imageNamed:@"buttonPicture"]];
    
    /* Then there must be some property I can set that prevents the button from stretching the image?? */
    
    .
    .
    .

I want to have a 50x100px button which only has a 50x50px image on the top half, and to be transparent on the bottom half.

I know how to create a custom button and everything. Im just woondering what the property is that controls the stretching of the backgroundImage.

Thanks!
Custom UIButton image iOS
===

Is it possible to have a custom UIButton that has an image covering only half of it?
I imagine it would be something like this:

    UIButton *someButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [someButton setBackgroundImage:[UIImage imageNamed:@"buttonPicture"]];
    
    /* Then there must be some property I can set that prevents the button from stretching the image?? */
    
    .
    .
    .

I want to have a 50x100px button which only has a 50x50px image on the top half, and to be transparent on the bottom half.

I know how to create a custom button and everything. Im just woondering what the property is that controls the stretching of the backgroundImage.

Thanks!