Open pnaqash opened 6 years ago
I have the same issue. Any one got any for this one?
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"];
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>'
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'