I am trying to convert my objectiveC
application into swift
and i am able to do it most of the things but here is some confusion ...
My ObjectiveC
code is
-(void)getResponseFromURL:(NSString *)strURL
withParams:(NSMutableDictionary *)dictParams
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject, bool isSuccess))blockSuccess
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))blockFailure
showLoader:(BOOL)isShowDefaultLoader
showAnimated:(BOOL)isShowLoaderAnimated hideLoader:(BOOL)isHideDefaultLoader
{ //some code here }
My Swift
code
func getResponseFromURL(strURL: String, withParams dictParams:Dictionary,
Success:(operation:AFHTTPRequestOperation, responseobject:AnyObject, isSucces:Bool)->void,
Failure:(operation:AFHTTPRequestOperation, error:NSError)->void,
showLoader isShowDefaultLoader:Bool,
showAnimated isShowLoaderAnimated:Bool, hideLoader isHideDefaultLoader:Bool){
// Some code here
}
but it gives me some error
I think i missed some tricks...but i don't know what was that...
So how to get rid of this error?