// 设置背景图片(图片会被拉伸充满整个btn.frame)
[UIButton setBackgroundImage:[UIImage imageNamed:@"btn.png"] forState:UIControlStateNormal];
// 设置按钮上的图片(图片不会被拉伸,原比例显示在btn.frame)
[UIButton setImage:[UIImage imageNamed:@"btn.png"] forState:UIControlStateNormal];
转载请注明出处:http://blog.csdn.net/sevenquan