腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
如何在objective c中以编程方式创建浮雕按钮?
iphone
、
objective-c
、
ios
、
user-interface
如何创建如下所示
的
带样式
的
按钮?我知道Facebook正在使用框架以编程方式生成按钮。我认为这是压倒性
的
。 我是ios
的
新手,所以我想知道创建这样
的
按钮最常用
的
方法是什么?
浏览 6
提问于2012-01-06
得票数 3
回答已采纳
1
回答
将
UIButton
的
背景
设置
为
CAGradientLayer
swift
、
xcode
如何
将
UIButton
的
背景
设置
为
CAGradientLayer
?-> Void { gradient.frame = self.bounds: 16.0)}() startButton.applyGradient(colors: [.red, .blue], locatio
浏览 26
提问于2019-05-28
得票数 0
回答已采纳
6
回答
如何让
UIButton
背景
变得透明?
iphone
、
uibutton
我尝试使用透明
的
png作为
背景
,但没有成功。我该怎么解决它呢?太赫兹。
浏览 0
提问于2010-05-11
得票数 27
1
回答
使用渐变颜色添加调整
UIButton
背景
的
大小
ios
、
swift
、
uibutton
、
gradient
使用下面的代码,我可以给一个渐变
的
UIButton
添加
背景
: to.insertSubview(backgroundImage, at: 0) let gradient =
CAGradientLayer
backgroundImage.layer.addSublayer(g
浏览 2
提问于2017-09-07
得票数 0
2
回答
CAGradientLayer
仅适用于
背景
ios
、
objective-c
、
quartz-core
、
cagradientlayer
我正在
将
渐变
设置
为
我
的
视图
背景
:grad.frame = self.contentView.frameCGColor]];self.layer.mask = grad; 问题是,每个元素(
UIButton
,UILabel.)在我看来,和父
浏览 5
提问于2014-06-08
得票数 0
回答已采纳
2
回答
自定义
UIButton
iphone
、
ios
、
colors
、
uibutton
我在iphone
的
内置应用程序中看到有一个红色
的
delete
UIButton
。我
的
问题是,如何更改按钮
的
颜色。通常在属性检查器中有一个'tint‘属性,但在使用
UIbutton
时没有。我很感谢你
的
帮助。
浏览 1
提问于2011-04-22
得票数 3
回答已采纳
1
回答
iOS -
UIButton
或自定义
UIButton
的
渐变
背景
ios
、
objective-c
、
uibutton
、
cagradientlayer
我用
UIButton
文件从.h文件中创建了自己
的
类:在实现中,我尝试添加一些更改
背景
的
方法self layer] insertSublayer:gradient atIndex:0];} GradientLayer.m文件
的
一部分green:0.0f blue:0.0f alpha:1.
浏览 1
提问于2014-04-07
得票数 2
回答已采纳
1
回答
iOS UITableView选择隐藏子视图按钮
背景
色
ios
、
objective-c
、
uitableview
、
selection
我有一个按钮作为表视图单元格
的
子视图。我希望表视图在点击时显示选择,但是选择颜色会覆盖按钮
背景
色。 例如,如果我有一个红色
背景
按钮
的
标题,标题将是唯一
的
东西显示在选择,而不是颜色。该颜色
将
只显示
为
选择颜色。当选择结束时,我可以再次看到按钮,但是有任何方法来覆盖此行为吗?
浏览 0
提问于2014-04-26
得票数 3
回答已采纳
2
回答
iPhone iOS自定义
UIButton
与
CAGradientLayer
,如何使其表示触摸?
iphone
、
objective-c
、
ios
、
uibutton
、
cagradientlayer
在我
的
视图控制器中有一个自定义样式
的
UIButton
,它是通过使用
CAGradientLayer
自定义
UIButton
、包围角和在层周围添加边框来实现
的
。 我喜欢这些按钮
的
外观和感觉,它们也很容易实现,无需使用预渲染
的
图像。但是我有一个问题--这样
的
按钮不能像
UIButton
那样按。例如,典型
的
圆角矩形按钮在被点击时突出显示蓝色,但我
的
按钮没有。如果按照下面的代码在
CA
浏览 2
提问于2012-10-20
得票数 3
5
回答
如何为iPhone创建一个黑色渐变
的
UIButton
?
iphone
、
ios
、
uibutton
我想在iOS中创建一个带有普通黑色渐变主题
的
UIButton
。我已经看过文档了,似乎不知道该怎么做。当我创建按钮时,我得到一个没有颜色
的
圆角矩形按钮。下面是我
的
代码:关于如何
将
标准主题黑色渐变添加到按钮
浏览 2
提问于2011-08-04
得票数 9
回答已采纳
2
回答
在我
将
渐变
设置
为
UIView后,我
的
UIElements不显示
ios
、
objective-c
、
swift
、
xcode
我用下面的代码将我
的
视图
设置
为
具有渐变
背景
gradientLayer.frame = view.bounds237/255, blue: 255/255, alpha: 1).cgColor]但是当我这样做时,我
的
所有其他元素,如
UIButton
和UILabels将
浏览 16
提问于2020-02-17
得票数 0
1
回答
iOS8:使用IB向
UIButton
添加梯度
ios8
、
uibutton
、
storyboard
、
autolayout
我用
的
是自动布局。我有三个
UIButton
,它们占据了整个屏幕。每个
UIButton
都有不同
的
背景
色,我想在每个屏幕上增加渐变。以下是我所采取
的
步骤: let gradientLocations: [Float] = [0.0, 1.0]
浏览 3
提问于2015-07-06
得票数 0
4
回答
带有GradientLayer
的
UIButton
模糊图像并使渐变变暗
ios
、
uibutton
、
calayer
、
cagradientlayer
我这里有一个
UIButton
,我想在图像下面有一个渐变作为
背景
(带有透明
背景
的
符号),但我面临着两个不同
的
问题。不管我怎么添加,第一个
CAGradientLayer
似乎覆盖在图像
的
顶部,完全模糊了图像。self.backButton = [[
UIButton
alloc] initWithFrame:CGRectMake(15, 35, 28, 28)];
浏览 2
提问于2011-11-13
得票数 34
回答已采纳
3
回答
怎样才能让
UIButton
看起来像一个删除按钮?
iphone
、
uibutton
我想让我
的
UIButton
看起来像这样:我怎样才能实现这个外观?有内置
的
设置
吗?或者我只需要在photoshop中手动创建它?
浏览 0
提问于2011-12-10
得票数 0
回答已采纳
1
回答
Swift PageViewController梯度
背景
ios
、
swift
、
gradient
、
uipageviewcontroller
、
layer
我有一个PageViewController,需要
设置
一个梯度
背景
到它。在普通ViewControllers中使用梯度
背景
时,我使用以下方法:layer.colors = [FirstColor.cgColor, SecondColor.cgColor]当我试图在我
的
self.view.layer中使用PageViewController时,我会得到一个错误: 无法<em
浏览 0
提问于2017-02-27
得票数 0
1
回答
你能用一个梯度作为按钮tintColor吗?
swift
、
gradient
、
tintcolor
我有一个图标资产在界面建设者,我有作为我
的
按钮形象。我可以用我是否可以
将
梯度应用于tintColor属性?更新 为了清晰,我
的
png图像图标有不同
的
形状,心,相机,我已经
设置
为
模板图像。他们都有透明
的
背景
。
浏览 3
提问于2016-01-12
得票数 0
回答已采纳
1
回答
CAGradientLayer
设置
为
scenekit
背景
块场景
swift
、
scenekit
、
cagradientlayer
、
sceneview
我使用以下方法
将
场景
的
背景
设置
为
CAGradientLayer
: gradientLayer.frame = self.view.boundsbackground.contents = gradientLayer 只适用于我
的
手机。如果我使用另一个测试设备,
CAGradientLayer
会阻止现场。如果我
将
sceneView
的
浏览 1
提问于2018-02-26
得票数 0
回答已采纳
6
回答
高亮显示时更改
UIButton
的
背景
色
iphone
、
uibutton
嗨,我想改变
UIButton
的
背景
颜色,用户点击
的
按钮。
CAGradientLayer
*gradient = [
CAGradientLayer
layer
浏览 1
提问于2010-10-26
得票数 26
回答已采纳
2
回答
如何在
背景
中将渐变颜色
设置
为
UIButton
?
ios
、
uibutton
、
gradient
、
linear-gradients
、
cagradientlayer
我试图
将
CAGradientLayer
设置
为
UIButton
。 下面是我尝试过
的
代码 let topColor = UIColor(red: 0.62, green: 0.38, blue: 1, alpha: 1).let bottomColor = UIColor(red: 0.87, green: 0.51, blue: 0.93, alpha: 1).cgC
浏览 0
提问于2018-09-26
得票数 0
1
回答
如何使用动态单元格
设置
视图(UITableview)
的
背景
?
ios
、
swift
、
uitableview
、
uiview
、
background
我正在尝试
为
UITableViewCell所占据
的
视图
设置
背景
颜色。我拖动了一个插座,并有一个渐变图层,我将其返回到它func viewGradient(topColour:UIColor,bottomColour] let gradientLayer:
CAGradientLayer
=
CAGradientLaye
浏览 8
提问于2017-01-25
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PPT实战操作:如何将图片设置为背景
今天是将Firefox设置为默认浏览器的好日子
微软放出新的全屏广告,要求用户将 Edge 设置为默认浏览器
如何将Excel表格中的折线图设置为实线虚线混排显示?
iOS 14:如何将谷歌浏览器设置为iPhone上的默认浏览器
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券