Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Asyncdisplaykit not updated #202

Open
pnaqash opened this issue May 8, 2018 · 3 comments
Open

Asyncdisplaykit not updated #202

pnaqash opened this issue May 8, 2018 · 3 comments

Comments

@pnaqash
Copy link

pnaqash commented May 8, 2018

ASDefaultPlaybackButtonType buttonType = (ASDefaultPlaybackButtonType)[parameters[@"buttonType"] intValue];
UIColor *color = parameters[@"color"];
These lines give an error
Expected method to read dictionary element not found on object of type 'id'

@pnaqash pnaqash changed the title Asynicdisplaykit not update for swift 4 Asynicdisplaykit not updated May 8, 2018
@pnaqash pnaqash changed the title Asynicdisplaykit not updated Asyncdisplaykit not updated May 8, 2018
@fionasanoif
Copy link

I have the same issue. Any one got any for this one?

@irajtech
Copy link

Strong cast the id value to dictionary and then access the values might solve the issue.

NSDictionary *buttonTypeDic = parameters;
ASDefaultPlaybackButtonType buttonType = [buttonTypeDic[@"buttonType"] intValue];
UIColor *color = buttonTypeDic[@"color"];

@SAYEDALISINA93
Copy link

I have the same issue,
the IOSRaj solution worked for me but it generates this warning
Initializing 'NSDictionary *__strong' with an expression of incompatible type '__strong id<NSObject>'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants