简体   繁体   中英

iOS UIbutton weird bottom edge

I'm just encountering a weird border for the UIbutton. I've added a button in the xib file and I've set for it an image but after running the project on the simulator it looked like this: 模拟器的屏幕截图

I haven't changed any property of that button and I haven't touched it in the code. Does anyone know why it is looking like this? and how can I solve it? Any help would be appreciated.

Thanks.

EDITED:

This is the image used for that button: 按钮的图像

The image has a gray line on the bottom of it. Here it is blown up in Photoshop, with a red background added.

在此输入图像描述

OK, try this image. I've removed the thin gray line from the bottom. It should fix your gray line :-)

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM