CODEX-8 HOW TO GET VALUE FROM URL IN OBJECTIVE – C

//REPONSE LINK FETRCHING
NSString *theURLString = [webView.request.URL absoluteString]; //CONVERT INTO NSURL

NSURL *url = [NSURL URLWithString:theURLString ];

//USE COMPONENT URL
NSURLComponents *urlComponents = [NSURLComponents

componentsWithURL:url

resolvingAgainstBaseURL:NO]; NSArray *queryItems = urlComponents.queryItems;

//Put Your Key to Fetch The Value from Your. Put Your Key Instead Of lapResponseCode in Below.

NSString *param1 = [self valueForKey:@”lapResponseCode” fromQueryItems:queryItems];

NSLog(@”param1 = %@”, param1);

Leave a Reply

Your email address will not be published. Required fields are marked *