ios - 在 UIbutton 中设置层外层?

标签 ios objective-c uibutton uiimage calayer

enter image description here

我想要这种类型的按钮 我尝试过 pictureBtn,它是 UIbutton ,我给了它一个 5 像素清晰的彩色角半径,并在下面添加了一个像相机一样的图片,但最后一个外部白线如何处理这个问题,任何人都可以有想法或类似控制之类的东西。

最佳答案

对于此设计,将按钮放在一个 View 中,并在 View 和按钮之间设置 5 像素间隙。 然后设置 2 像素的 View 边框。

关于ios - 在 UIbutton 中设置层外层?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30934444/

相关文章:

ios - 在 iOS 5.1 上滚动时 UITableView 中的内存泄漏

ios - 数据未在详细 View 中加载

ios - 在 objective-C 的 dispatch_async 中传递参数时出现 EXC_BAD_ACCESS

ios - isRegisteredForRemoteNotifications 返回 true 即使我完全禁用它

ios - 在 ScrollView 中隐藏未使用的图像(Swift)

ios - 在 monotuch 中如何将字符串转换为小数/ float ?

iphone - 从plist创建NSArray

ios - 为什么我的 UIButton 的 "touch up inside"事件没有被调用?

ios - 向 UIButton touchesBegan 添加声音的协议(protocol)

ios - 带有背景图像的 UIButton 突出显示状态错误