Krishna Krishna - 1 month ago 9
iOS Question

Do not call the delegate method of CKRadialMenu

I use CKRadialMenu library. There is a method

- (void) addPopoutView: (UIView *) popoutView withIndentifier: (NSString *) identifier


I pass a image view like this..

UIImageView *imgForFood2 = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"food-icon-img 40.png"]];
[_radialView addPopoutView:imgForFood2 withIndentifier:@"ONE"];


In the output the image will add but when i try to click this popOutView its delegate method does not fire.
Here is the delegate method

-(void)radialMenu:(CKRadialMenu *)radialMenu didSelectPopoutWithIndentifier:(NSString *)identifier;


Please help me.

Answer

You just need to enable the user Interaction on Imageview.

UIImageView *imgForFood2 = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"food-icon-img 40.png"]];

[imgForFood2 setUserInteractionEnabled:TRUE];
[radialView addPopoutView:imgForFood2 withIndentifier:@"ONE"];