eBay / NMessenger

A fast, lightweight messenger component built on AsyncDisplaykit and written in Swift
Other
2.42k stars 272 forks source link

Asyncdisplaykit not updated #202

Open pnaqash opened 6 years ago

pnaqash commented 6 years ago

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'

fionasanoif commented 6 years ago

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

irajtech commented 6 years ago

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 commented 6 years ago

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>'