Giter Site home page Giter Site logo

svga / svgaplayer-ios Goto Github PK

View Code? Open in Web Editor NEW
1.1K 1.1K 276.0 2.88 MB

Similar to Lottie. Render After Effects / Animate CC (Flash) animations natively on Android and iOS, Web. 使用 SVGAPlayer 在 Android、iOS、Web中播放 After Effects / Animate CC (Flash) 动画。

Home Page: http://svga.io

License: Apache License 2.0

Ruby 1.21% Objective-C 98.79%

svgaplayer-ios's People

Contributors

errnull avatar maxlee avatar ponycui avatar smallblackcat avatar yangqingren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svgaplayer-ios's Issues

关于动态替换礼物的图片。传入CALayer 没有效果

pod 'SVGAPlayer', '~> 2.1.1'

kingset.svga 这个素材 替换其中99 image
[self.aPlayer setImage:iconImage forKey:@"99" referenceLayer:iconLayer];

使用这个方法后 替换的图片成功。但是 iconLayer 没有效果。 这个要怎么解决

parse 堵塞

同时 Parse 多个文件时,会出现堵塞现象,parse 过程变得非常慢。

ios解压报错怎么解决

Error Domain=SSZipArchiveErrorDomain Code=-1 "failed to open zip file" UserInfo={NSLocalizedDescription=failed to open zip file}

Crash ,- (BOOL)isKeepFrame:(SVGAVideoSpriteFrameEntity *)frameItem

  • (BOOL)isKeepFrame:(SVGAVideoSpriteFrameEntity *)frameItem {
    if ([frameItem.shapes.firstObject isKindOfClass:[NSDictionary class]]) {
    return [frameItem.shapes.firstObject[@"type"] isKindOfClass:[NSString class]] &&
    [frameItem.shapes.firstObject[@"type"] isEqualToString:@"keep"];
    }
    else if ([frameItem.shapes.firstObject isKindOfClass:[SVGAProtoShapeEntity class]]) {
    return [(SVGAProtoShapeEntity *)frameItem.shapes.firstObject type] == SVGAProtoShapeEntity_ShapeType_Keep;
    }
    else {
    return NO;
    }
    }

//建议加上判断
if !frameItem.shapes.count {
return NO;
}

动画资源的缓存策略为什么没有生效,每次依然会下载

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

如何释放内存

加载很大的SVGA文件后(10M左右的),会发现内容暴增的情况(100-300M不等),并且无法释放,有没有好的解决办法
放在Demo中也是同样的内存暴增情况,目前多播放了几个Svga文件就导致内存崩了,如何解决。谢谢

AE里调的3d变换动画导出没有效果,什么时候可以支持3d变换呢?

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

SVGA内存不释放的原因及解决

SVGAPlayer-iOS使用了NSCache管理缓存.

SVGAVideoEntity类的saveCache:方法中,

- (void)saveCache:(NSString *)cacheKey {
    [videoCache setObject:self forKey:cacheKey];
}

self作为key会导致static类型的全局变量videoCache对其进行强引用, 需要立即进行内存释放的可以修改其缓存逻辑. 否则, NSCache将会在系统内存警告时才会自动释放部分缓存.

加载不同的svga文件内存会持续增加,造成内存闪退问题

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

项目中集成了SVGA,解压zip时失败

Error Domain=SSZipArchiveErrorDomain Code=-1 "failed to open zip file" UserInfo={NSLocalizedDescription=failed to open zip file}
怎么解决。。。pod集成的,不清楚问题原因。。用的是demo的参数,demo是好的

如何适配iPhone X 18:9满屏动画

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

About cache invalidation

你好!我这边服务端按照你文档所说的提供相关的 Cache-Control 但是发现还是没走内存,请问是跟svga的大小有关系吗? 我的这个svga 是3M左右

{ URL: https://********6bbe7b8c2695517de5dccd2f9764415a.svga } { Status Code: 200, Headers {
Last-Modified = (
"Tue, 20 Mar 2018 06:18:58 GMT",
),
access-control-allow-methods = (
"GET, POST",
),
Server = (
"Tengine",
),
timing-allow-origin = (
"",
),
Cache-Control = (
"max-age=604800",
),
x-oss-request-id = (
"5AD9BBD8663518FF6D6F0541",
),
Accept-Ranges = (
"bytes",
),
x-oss-hash-crc64ecma = (
"2346656011198604988",
),
Access-Control-Allow-Origin = (
"
",
),
Content-Length = (
"3569299",
),
x-swift-savetime = (
"Fri, 20 Apr 2018 10:07:20 GMT",
),
Via = (
"cache2.l2st3-2[77,304-0,H], cache22.l2st3-2[80,0], kunlun9.cn116[0,200-0,H], kunlun10.cn116[1,0]",
),
content-md5 = (
"HafrWi2tn81myrYlwrXpOw==",
),
Date = (
"Fri, 20 Apr 2018 10:07:20 GMT",
),
x-oss-server-time = (
"14",
),
eagleid = (
"7793970a15242211477701005e",
),
Age = (
"2307",
),
x-oss-o

播放动画时,有其他界面交互(如连击),动画会卡顿

加载较大的动画时,连击动画卡顿

[parser lv_parseWithURL:[NSURL URLWithString:NSNULLText(self.animateUrl)] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {
if (videoItem != nil) {
self.playerSVG.videoItem = videoItem;
[self.playerSVG startAnimation];
self.playerSVG.loops = 1;
}else {
[self removeFromSuperview];
if (nil != self.callBack && [self.callBack respondsToSelector:@selector(biggestGiftViewFinishShowed:)]) {
[self.callBack biggestGiftViewFinishShowed:self];
}
}
} failureBlock:^(NSError * _Nullable error) {
[self removeFromSuperview];
if (nil != self.callBack && [self.callBack respondsToSelector:@selector(biggestGiftViewFinishShowed:)]) {
[self.callBack biggestGiftViewFinishShowed:self];
}
}]

SVGAPlayer-iOS 2.1.0 发现每次都会请求不走缓存是为什么?

您好!

   我在iosdebug 环境看到fileExistsAtPath 每次都都是false 并不走缓存 我看到你close 的一个相同的问题说打到max-cache 就会缓存 我下面的链接已经打到了 3.6M 了 

   (https://ele-production.nos-eastchina1.126.net/uploads/nil_class/6bbe7b8c2695517de5dccd2f9764415a.svga)这是我做的svga
  • (void)parseWithURL:(nonnull NSURL *)URL
    completionBlock:(void ( ^ _Nonnull )(SVGAVideoEntity * _Nullable videoItem))completionBlock
    failureBlock:(void ( ^ _Nullable)(NSError * _Nullable error))failureBlock {
    // 不会走缓存
    if ([[NSFileManager defaultManager] fileExistsAtPath:[self cacheDirectory:[self cacheKey:URL]]]) {
    [self parseWithCacheKey:[self cacheKey:URL] completionBlock:^(SVGAVideoEntity * _Nonnull videoItem) {
    if (completionBlock) {
    completionBlock(videoItem);
    }
    } failureBlock:^(NSError * _Nonnull error) {
    [self clearCache:[self cacheKey:URL]];
    if (failureBlock) {
    failureBlock(error);
    }
    }];
    return;
    }
    [[[NSURLSession sharedSession] dataTaskWithURL:URL completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
    //每次都会进行请求
    if (error == nil && data != nil) {
    [self parseWithData:data cacheKey:[self cacheKey:URL] completionBlock:^(SVGAVideoEntity * _Nonnull videoItem) {
    if (completionBlock) {
    completionBlock(videoItem);
    }
    } failureBlock:^(NSError * _Nonnull error) {
    [self clearCache:[self cacheKey:URL]];
    if (failureBlock) {
    failureBlock(error);
    }
    }];
    }
    else {
    if (failureBlock) {
    failureBlock(error);
    }
    }
    }] resume];
    }

获取svga格式文件为nil

[[NSBundle mainBundle]pathForResource:@“test” ofType:@"svga"]

这个获取的路径为空,是识别不了svga格式的文件吗?

显示错误

CGFloat ratio = self.bounds.size.height / self.videoItem.videoSize.height;
CGPoint offset = CGPointMake(
(1.0 - ratio) / 2.0 * self.videoItem.videoSize.width - (self.bounds.size.width - self.videoItem.videoSize.width * ratio) / 2.0,
(1.0 - ratio) / 2.0 * self.videoItem.videoSize.height);
self.drawLayer.transform = CATransform3DMakeAffineTransform(CGAffineTransformMake(ratio, 0, 0, ratio, -offset.x, -offset.y));
这里会超出父view的尺寸左边缘

如何适配iPhone X

请问如何适配iPhone X,在其余机型正常跑的svga动画,在iPhone X上偏上

parseWithURL

下载完成的时候只缓存到了NSCache没有写入本地,导致app重启后每次都要下载

Memory increase very fast when i play a svga file

Memory increase very fast when i play a SVGA file

  1. Our SVGA file is about 4m. When i play one animate and stop , but the memory increase very fast and can't reduce to a normal level

  2. Did this player has some limit to SVGA source , or did our SVGA files is too big???

thx

SSZipArchive 版本问题

SSZipArchive 可以更新到2.0版本吗 更新了SVG,但是SSZipArchive却需要降低版本到1.8

SVGAPlayer-iOS 是否支持交互

SVGAPlayer-iOS 支持交互吗?即用户如果点击了其中特定的图片元素或者文字, 能得到响应。粗略看了源码,貌似是没有相关接口的,有计划支持吗?

依赖SSZipArchive的问题

podspec里指定了SSZipArchive库,1.8.1目前编译会和openssl存在链接冲突的情况 最新版的SSZipArchive应该解决了,依赖项不要写死1.8.1

SVGABezierPath crash

EXC_CRASH(SIGABRT).txt

创建一个页面加载两个本地的svga文件,push这个viewController,然后显示动画(动画循环)pop这个viewController
不停的重复上面的操作,偶尔会出现crash

"os_version":"iPhone OS 10.0.1 (14A403)"

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0

Application Specific Information:
abort() called

Filtered syslog:
None found

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000180642014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000180709460 pthread_kill + 112
2 libsystem_c.dylib 0x00000001805b63f4 abort + 140
3 libsystem_malloc.dylib 0x0000000180686a38 _nano_vet_and_size_of_live + 0
4 libsystem_malloc.dylib 0x0000000180687db8 nano_free + 220
5 CoreFoundation 0x0000000181623e8c _CFRelease + 1264
6 CoreFoundation 0x00000001816339fc _CFStringCreateWithFormatAndArgumentsAux2 + 268
7 Foundation 0x0000000182052218 +[NSString stringWithFormat:] + 68
8 XXXXXX-ios 0x00000001012c9168 BLYThreadBacktraceSymbolicate + 520
9 XXXXXX-ios 0x00000001012c8398 BLYCrashHandlerCallback + 2860
10 XXXXXX-ios 0x00000001012c55bc BLYBSDSignalHandlerCallback + 92
11 libsystem_platform.dylib 0x0000000180703348 _sigtramp + 52
12 libsystem_pthread.dylib 0x0000000180709460 pthread_kill + 112
13 libsystem_c.dylib 0x00000001805b63f4 abort + 140
14 libsystem_malloc.dylib 0x0000000180686a38 _nano_vet_and_size_of_live + 0
15 libsystem_malloc.dylib 0x0000000180687db8 nano_free + 220
16 CoreFoundation 0x0000000181623e8c _CFRelease + 1264
17 CoreFoundation 0x00000001816339fc _CFStringCreateWithFormatAndArgumentsAux2 + 268
18 CoreFoundation 0x0000000181657b98 _CFLogvEx2Predicate + 156
19 CoreFoundation 0x0000000181657eec _CFLogvEx3 + 408
20 Foundation 0x000000018213b4e4 _NSLogv + 132
21 Foundation 0x00000001820623ec NSLog + 32
22 XXXXXX-ios 0x00000001012c5590 BLYBSDSignalHandlerCallback + 48
23 libsystem_platform.dylib 0x0000000180703348 _sigtramp + 52
24 libsystem_pthread.dylib 0x0000000180709460 pthread_kill + 112
25 libsystem_c.dylib 0x00000001805b63f4 abort + 140
26 libsystem_malloc.dylib 0x0000000180686a38 _nano_vet_and_size_of_live + 0
27 libsystem_malloc.dylib 0x0000000180687db8 nano_free + 220
28 CoreFoundation 0x0000000181623e8c _CFRelease + 1264
29 CoreFoundation 0x00000001816339fc _CFStringCreateWithFormatAndArgumentsAux2 + 268
30 CoreFoundation 0x0000000181657b98 _CFLogvEx2Predicate + 156
31 CoreFoundation 0x0000000181657eec _CFLogvEx3 + 408
32 Foundation 0x000000018213b4e4 _NSLogv + 132
33 Foundation 0x00000001820623ec NSLog + 32
34 XXXXXX-ios 0x00000001012c5590 BLYBSDSignalHandlerCallback + 48
35 libsystem_platform.dylib 0x0000000180703348 _sigtramp + 52
36 libsystem_pthread.dylib 0x0000000180709460 pthread_kill + 112
37 libsystem_c.dylib 0x00000001805b63f4 abort + 140
38 libsystem_malloc.dylib 0x0000000180686a38 _nano_vet_and_size_of_live + 0
39 libsystem_malloc.dylib 0x0000000180687db8 nano_free + 220
40 CoreFoundation 0x0000000181623e8c _CFRelease + 1264
41 CoreFoundation 0x00000001816339fc _CFStringCreateWithFormatAndArgumentsAux2 + 268
42 CoreFoundation 0x0000000181657b98 _CFLogvEx2Predicate + 156
43 CoreFoundation 0x0000000181657eec _CFLogvEx3 + 408
44 Foundation 0x000000018213b4e4 _NSLogv + 132
45 Foundation 0x00000001820623ec NSLog + 32
46 XXXXXX-ios 0x00000001012c5590 BLYBSDSignalHandlerCallback + 48
47 libsystem_platform.dylib 0x0000000180703348 _sigtramp + 52
48 libsystem_pthread.dylib 0x0000000180709460 pthread_kill + 112
49 libsystem_c.dylib 0x00000001805b63f4 abort + 140
50 libsystem_malloc.dylib 0x0000000180686a38 _nano_vet_and_size_of_live + 0
51 libsystem_malloc.dylib 0x0000000180687db8 nano_free + 220
52 CoreFoundation 0x0000000181623e8c _CFRelease + 1264
53 CoreFoundation 0x00000001816339fc _CFStringCreateWithFormatAndArgumentsAux2 + 268
54 CoreFoundation 0x0000000181657b98 _CFLogvEx2Predicate + 156
55 CoreFoundation 0x0000000181657eec _CFLogvEx3 + 408
56 Foundation 0x000000018213b4e4 _NSLogv + 132
57 Foundation 0x00000001820623ec NSLog + 32
58 XXXXXX-ios 0x00000001012c5590 BLYBSDSignalHandlerCallback + 48
59 libsystem_platform.dylib 0x0000000180703348 _sigtramp + 52
60 libsystem_pthread.dylib 0x0000000180709460 pthread_kill + 112
61 libsystem_c.dylib 0x00000001805b63f4 abort + 140
62 libsystem_malloc.dylib 0x0000000180686a38 _nano_vet_and_size_of_live + 0
63 libsystem_malloc.dylib 0x0000000180687db8 nano_free + 220
64 CoreFoundation 0x000000018163e5d0 __CFStringChangeSizeMultiple + 2716
65 CoreFoundation 0x000000018163be3c __CFStringCheckAndReplace + 736
66 CoreFoundation 0x000000018157b418 -[__NSCFString appendString:] + 52
67 Foundation 0x00000001820ca93c -[NSRegularExpression(NSReplacement) stringByReplacingMatchesInString:options:range:withTemplate:] + 512
68 Foundation 0x00000001820ca6e4 -[NSString(NSRegularExpressionSupport) _stringByReplacingOccurrencesOfRegularExpressionPattern:withTemplate:options:range:] + 276
69 XXXXXX-ios 0x000000010271074c -[SVGABezierPath setValues:] + 164
70 XXXXXX-ios 0x0000000102710c18 -[SVGABezierPath createLayer] + 100
71 XXXXXX-ios 0x000000010271a8a8 -[SVGAVectorLayer createCurveLayerWithProto:] + 404
72 XXXXXX-ios 0x000000010271a42c -[SVGAVectorLayer drawFrame:] + 1200
73 XXXXXX-ios 0x0000000102711bfc -[SVGAContentLayer stepToFrame:] + 728
74 XXXXXX-ios 0x00000001027182e4 -[SVGAPlayer update] + 344
75 XXXXXX-ios 0x0000000102718588 -[SVGAPlayer next] + 544
76 QuartzCore 0x0000000184877640 CA::Display::DisplayLinkItem::dispatch(unsigned long long) + 44
77 QuartzCore 0x00000001848774ec CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 444
78 IOKit 0x00000001818e0570 IODispatchCalloutFromCFMessage + 372
79 CoreFoundation 0x000000018160a56c __CFMachPortPerform + 180
80 CoreFoundation 0x0000000181622934 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 56
81 CoreFoundation 0x00000001816220e8 __CFRunLoopDoSource1 + 436
82 CoreFoundation 0x000000018161fbcc __CFRunLoopRun + 1840
83 CoreFoundation 0x000000018154e048 CFRunLoopRunSpecific + 444
84 GraphicsServices 0x0000000182fd1198 GSEventRunModal + 180
85 UIKit 0x0000000187527818 -[UIApplication _run] + 684
86 UIKit 0x0000000187522550 UIApplicationMain + 208
87 XXXXXX-ios 0x00000001007f0e14 main (main.m:23)
88 libdyld.dylib 0x00000001805305b8 start + 4

关于内存暴增的问题

一加载动画,内存就会暴增。我们已经在动画结束的回调方法里面添加了remove的方法
-(void)svgaPlayerDidFinishedAnimation:(SVGAPlayer *)player
{
[_aPlayer stopAnimation];
[_aPlayer clear];

}
请问还有什么可以优化内存的方法吗?

why reset the textLayer`frame in SVGAContentLayer?

the code inSVGAContentLayer.m

- (void)setFrame:(CGRect)frame {
    [super setFrame:frame];
    self.bitmapLayer.frame = self.bounds;
    self.vectorLayer.frame = self.bounds;
    for (CALayer *sublayer in self.sublayers) {
        if ([sublayer isKindOfClass:[CATextLayer class]]) {
            CGRect frame = sublayer.frame;
            frame.origin.x = (self.frame.size.width - sublayer.frame.size.width) / 2.0;
            frame.origin.y = (self.frame.size.height - sublayer.frame.size.height) / 2.0;
            sublayer.frame = frame;
        }
    }
}

why reset frame of the CATextLayer inner?
my scene is a image icon left of a dynamic text, when the text is too long, icon will be sheltered by text.

Cache error

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

ios12 iphonex xcode10
增加了respose header 缓存字段但是没有进行缓存,源码中也没有找到.自己把data写入到了沙盒才正常

连续赠送礼物 怎么设置播放次数?

Attention

  • Do not ask any usage question, issue board is a issue board, accept library bugs only.
  • If you are facing any usage problem, read the README again.

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

  • 不要在 Issue 板块提问使用问题,Issue 板块只接受 Bug 反馈。
  • 如果遇到使用上的问题,仔细阅读 README。

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

关于缓存机制

我想问一下.我播放过的SVGA文件.会自动缓存到本地么?还是说每次都需要去根据url去播放呢?

内存释放

创建一个页面加载两个本地的svga文件,在viewWillAppear里面显示动画,在viewWillDisappear里面消失动画,调用以下代码
[self.aPlayer stopAnimation];
[self.aPlayer clear];
[self.aPlayer clearDynamicObjects];
if (self.aPlayer.superview != nil) {
[self.aPlayer removeFromSuperview];
}
self.aPlayer = nil;
push这个viewController,然后显示动画(动画循环)pop这个viewController
不停的重复上面的操作,会出现内存增加

数据请求返回错误

[[[NSURLSession sharedSession] dataTaskWithRequest:URLRequest completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable}];
返回的data格式为OS_dispatch_data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.