腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
CADisplayLink
的
displayLinkWithTarget
:
selector
:
和
UIScreen
的
displayLinkWithTarget
:
selector
:
有
什么区别
?
、
CADisplayLink
使用此方法是有意义
的
,但我很好奇为什么
UIScreen
也会使用它。
浏览 19
提问于2017-01-11
得票数 5
回答已采纳
0
回答
10.5英寸iPad专业版上
的
CADisplayLink
帧率
、
、
我们
有
一个基于OpenGL
的
iOS应用程序。我们使用
CADisplayLink
来控制绘图更新。我刚买了新
的
10.5英寸iPad专业版,我们得到
的
最大帧率是60,而不是理论上可以在新硬件上得到
的
120。我们像这样设置显示链接: self.
caDisplayLink
= [
CADisplayLink
displayLinkWithTarget
:self
selector
:@
selector
(di
浏览 6
提问于2017-06-14
得票数 2
回答已采纳
1
回答
CADisplayLink
允许异常
、
、
、
我注意到在使用
CADisplayLink
时,异常会被吞噬:[aDisplayLink setFrameInterval:100]; [aDisplayLink addToRunLoop:[NSRunLoop30:37.666 TestFrameLink[10534:207]
浏览 4
提问于2011-04-12
得票数 4
回答已采纳
1
回答
将声音与CCAnimation同步
、
、
、
我
有
一个包含CCAnimation
的
CCSpeed,它可以根据游戏中发生
的
事情动态地改变它
的
速度。有没有什么方法可以让动画在每次“滴答”(切换帧)时调用选择器,在这种情况下,为了播放声音?编辑:也欢迎其他同步动画节拍和声音
的
解决方案
浏览 1
提问于2011-05-04
得票数 4
1
回答
CADisplayLink
displayLinkWithTarget
立即发布
、
、
、
、
我正在使用一个外部库,由于某种原因,当测试应用程序是用故事板设计
的
时候,
CADisplayLink
displayLinkWithTarget
方法会返回一个立即释放
的
对象?timer = [
CADisplayLink
displayLinkWithTarget
:self
selector
:@
selector
(step)]; [timer addToRunLoop
浏览 14
提问于2014-08-20
得票数 0
1
回答
有谁在使用cocos2d时有内存泄漏吗?
、
、
我检测到一个内存泄漏,特别是在director对象
的
startAnimation方法中。CCLOG(@"cocos2d: Frame interval: %d", frameInterval); [displayLink se
浏览 0
提问于2009-11-27
得票数 2
2
回答
CADisplayLink
在iOS 6.0没有保留目标
、
、
、
我有这样
的
代码:[invocation setTarget:self];displayLink_ = [[
CADisplayLink
displayLinkW
浏览 0
提问于2012-09-21
得票数 3
1
回答
核心动画拖拽层: NSTimer驱动
的
inContext,我做
的
对吗?
、
、
、
我正在做一个涉及核心动画
和
AV基金会
的
项目。我想使用核心动画渲染一些效果,然后通过AV基金会将其导出到视频文件中。我想要达到
的
动画效果是重放终端用户在iPad上签名。到目前为止我所取得
的
成就:--通过引用来自苹果
的
GLPainter示例,我能够记录用户签名
的
笔画,每一笔都由多个触点(CGPoint)组成,这些触点记录在我
的
自定义UIView
的
touchBegin/touchMovedUIView
的
drawRect中编写<em
浏览 1
提问于2011-08-19
得票数 1
回答已采纳
2
回答
如何跟踪屏幕渲染器
、
、
、
如何在React-Native中将对象作为时间函数进行移动
CADisplayLink
*link = [
CADisplayLink
displayLinkWithTarget
:self
selector
:@
selector
(tick:)]; [link addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode
浏览 29
提问于2015-11-01
得票数 3
3
回答
如何在Swift中设置目标与
CADisplayLink
实例间弱引用
的
CADisplayLink
、
、
在Objective中,我们可以使用代理模式插入
CADisplayLink
以打破强引用:self.displayLink = [
CADisplayLink
displayLinkWithTarget
:weakProxy
selector
:@
selector
(displayDidRefreshdisplayLink invalidate];然而,NSProxy似乎不能在Swift:
浏览 20
提问于2017-05-21
得票数 2
回答已采纳
2
回答
同时运行多个CADisplayLinks?
、
、
、
、
我使用
CADisplayLink
作为选通
的
定时器。我
有
两个CADisplayLinks:SMPTELink = [
CADisplayLink
displayLinkWithTarget
:self
selector
:forMode:NSDefaultRunLoopMode];strobeLink = [
CADisplayLink
displayLinkWithTarget</
浏览 2
提问于2013-02-21
得票数 0
回答已采纳
1
回答
线程中
的
CADisplayLink
、
、
我正在做一个游戏,我想在不同
的
线程上运行游戏逻辑代码
和
渲染代码,希望能提高性能。但就我而言,我不知道如何在派生
的
线程中运行
CADisplayLink
。现在,我正在使用NSThread进行多线程。这是我现在使用
的
代码,-logicLoop
和
-animationLoop都是在不同
的
线程上运行
的
,所以我认为它们会得到不同
的
run循环,并且CADisplayLinks会在不同
的
线程上。-(void)logicLoop {
浏览 2
提问于2012-08-18
得票数 4
回答已采纳
2
回答
Obj.C宏
的
快速版本: IS_RETINA
、
、
我使用了这个代码:我需要上述宏
的
快速代码。
浏览 0
提问于2015-04-27
得票数 0
回答已采纳
3
回答
setNeedsDisplay混淆
我用这个来移动我
的
图像:下面是我
的
moveImage:方法: CGPoint img; else{ imgLocation.
浏览 0
提问于2013-04-02
得票数 1
回答已采纳
5
回答
如何正确停止并恢复
CADisplayLink
?
、
、
、
我发现了
CADisplayLink
的
一个大问题。
CADisplayLink
*dl = [[
UIScreen
mainScreen]
displayLinkWithTarget
:self
selector
:@
的
结论是:像我前面所做
的
那样,创建一个
CADisplayLink</e
浏览 5
提问于2011-12-07
得票数 16
2
回答
目标-c:实现轻松动画
、
、
我
有
下面的代码来动画一个分数标签。你将如何改变它,使它成为一个轻松
的
动画?self.scoreAnimationFrom = fromValue;
浏览 1
提问于2014-05-10
得票数 1
回答已采纳
1
回答
如何在
CADisplaylink
中使用mainRunloop循环调用我更改视图位置以显示动画
的
方法
、
、
、
、
我想在我
的
视图中显示一个动画,.so,我使用
CADisplaylink
作为计时器,这样它将在一秒钟内调用更新方法60次(60.so)。但是当在同一超级视图中重新加载
的
表视图时,
CADisplaylink
每秒只调用40-50次(40-50 the )。self.displayLink = [
CADisplayLink
displayLinkWithTarget
:self
selector
:@
selector
(update)]; self.displayL
浏览 2
提问于2015-11-10
得票数 0
回答已采纳
1
回答
ios UIView动画(onUpdate)
、
、
UIView animatWithDuration对completion
有
一个可选
的
param,但对于update我需要一个 整个想法是,我需要一个块,运行在每一帧动画。
有
什么想法?
浏览 3
提问于2012-02-04
得票数 1
回答已采纳
2
回答
更改
CADisplayLink
的
时间间隔
、
我已经用
CADisplayLink
替换了NSTimer。我让它正常工作,但它运行得太慢了。我怎么才能加快速度呢?这是我使用
的
代码:
CADisplayLink
*displayLink;displayLink = [
CADisplayLink
displayLinkWithTarget
:self
selector
:@
selector
(onTimer)]; [displayLink addT
浏览 1
提问于2014-05-27
得票数 2
2
回答
在C#开发人员能够理解
的
术语中,@
selector
指令是什么?
、
在这里使用
的
目的是什么?
CADisplayLink
* displayLink = [
CADisplayLink
displayLinkWithTarget
:self
selector
:@
selector
(render:)];代码来自初学者OpenGL es2.0站点 @
selector
()指令允许您引用编译后
的
选择器,而不是完整
的
方法名。不幸
的
是,这并没有让我明白。我
的
专长是在C#
浏览 1
提问于2012-06-27
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券