iOS: Load Form in a UIWebView and Submit

[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@»document.getElementById(‘username’).value =’%@'», @»user»]];
    
[self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@»document.getElementById(‘password’).value =’%@'», @»passs»]];
    
[self.webView stringByEvaluatingJavaScriptFromString:@»document.getElementById(‘loginForm’).submit()»];

Leave a Comment

Copyright © 2019 Soulmedic Theme All Rights Reserved | Design Themes

Atomic Flavor