Saturday, 15 September 2012

ios - Incompatible block pointer types in helper class -



ios - Incompatible block pointer types in helper class -

i have unusual error. application running when opened morning

incompatible block pointer types assigning 'void(^_strong)(nsstring*_strong)' 'void(^_strong)(nsstring *_strong, int'

this code:

@property (nonatomic, strong) void(^completionhandler)(nsstring *, nsinteger); -(void)showinview:(uiview *)view withcompletionhandler:(void (^)(nsstring *, int))handler{ _completionhandler = handler; [_actionsheet showinview:view]; }

not sure do. helper class not code.

change type int nsinterger in method definition, works

@property (nonatomic, strong) void(^completionhandler)(nsstring *, nsinteger); -(void)showinview:(uiview *)view withcompletionhandler:(void (^)(nsstring *, nsinteger))handler{ _completionhandler = handler; [_actionsheet showinview:view]; }

ios

No comments:

Post a Comment