Comments (6)
from barragerenderer.
BarrageWalkDirectionR2L BarrageFloatDirectionB2T 同时设置这两个?我现在需要从又往左出来,先出来的要在最下面显示。
from barragerenderer.
#import "BarrageWalkSprite.h"
@interface BarrageWalkELBarrageViewSprite : BarrageWalkSprite
#import "BarrageWalkELBarrageViewSprite.h"
#import "ELBarrageView.h"
#import "ELBarrageModel.h"
@implementation BarrageWalkELBarrageViewSprite
@synthesize model = _model;
- (instancetype)init
{
if (self = [super init]) {
_model = nil;
}
return self;
}
#pragma mark - launch
- (UIView *)bindingView
{
ELBarrageView *barrageView = [[ELBarrageView alloc] initWithFrame:CGRectMake(0, 0, 375, 36)];
[barrageView fillWithBarrage:_model];
return barrageView;
}
我继承你的写了一个Sprite,我把bindview 宽度设的足够大,还是会出现重叠
from barragerenderer.
『BarrageWalkDirectionR2L BarrageFloatDirectionB2T 同时设置这两个?我现在需要从又往左出来,先出来的要在最下面显示。』这个是不支持的。
from barragerenderer.
『(UIView *)bindingView { ELBarrageView *barrageView = [[ELBarrageView alloc] initWithFrame:CGRectMake(0, 0, 375, 36)]; [barrageView fillWithBarrage:_model]; return barrageView; }』
在bindingView里设置frame不起作用,需要在你的ELBarrageView里面实现 sizeThatFits方法返回ELBarrageView真实的大小。比如返回(375, 36)。
from barragerenderer.
『(UIView *)bindingView { ELBarrageView *barrageView = [[ELBarrageView alloc] initWithFrame:CGRectMake(0, 0, 375, 36)]; [barrageView fillWithBarrage:_model]; return barrageView; }』
在bindingView里设置frame不起作用,需要在你的ELBarrageView里面实现 sizeThatFits方法返回ELBarrageView真实的大小。比如返回(375, 36)。
写在sizeThatFits这边会很卡
from barragerenderer.
Related Issues (20)
- pod 集成报错
- 项目无法打开
- 更改字体 HOT 1
- 固定数量的弹幕,如何循环显示?
- 单条弹幕的暂停与恢复
- Swift - 自定义弹幕报错:Redundant conformance of 'DanmakuView' to protocol 'BarrageViewProtocol'
- Expose params in BarrageDescriptor class HOT 1
- shadowColor and shadowOffset not work for UILabel(BarrageView) HOT 3
- MLEmojiLabel 这个文件 报错
- 弹幕停顿1-2s
- 如何自定义文字的背景视图 HOT 3
- 如何做成类似tableview,有消息的时候消息从下往上出现消息,而且怎么固定行呐
- 手机特别烫,如何优化一下会好
- CPU起步56%,随着速度的减慢,CPU能达到90%以上
- 应该采用opengl es绘制比较好
- 内存泄漏
- 自定义UI 问题
- 关于弹幕重叠的问题 HOT 7
- `spriteQueueWithDelayLessThan` 里面的逻辑好奇怪 HOT 1
- 请问能否实现几个弹幕并排前进的效果(图) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barragerenderer.