iPhone - UIButton with non resized image inside -


i have uibutton "custom" type, "image" property gets image resources. image smaller button. cannot achieve interface builder keep original size of image while scaling button's dimensions want.

how may have button of size ib, keeping original image size, aligning on center, left right, bottom, inot button... ? isn't possible without putting uiimageview on ?

make sure contenthorizontalalignment , contentverticalalignment properties of button not set uicontrolhorizontalalignmentfill , uicontrolverticalalignmentfill respectively. values scale button image fill button frame. other value align image appropriately.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -