This post, I will teach you how you can automatically login to a UIWebView.
It turns out to be simple if the login uses a simple form POST.
12345678910111213141516
-(void)login{// Setup the URLNSString*loginUrl=@"https://just2us.com/login";NSURL*url=[NSURLURLWithString:loginUrl];NSMutableURLRequest*requestObj=[NSMutableURLRequestrequestWithURL:url];// POST the username password[requestObjsetHTTPMethod:@"POST"];NSString*postString=[NSStringstringWithFormat:@"username=%@&password=%@",@"samwize",@"secret"];NSData*data=[postStringdataUsingEncoding:NSUTF8StringEncoding];[requestObjsetHTTPBody:data];// Load the requestself.webview.delegate=self;[self.webviewloadRequest:requestObj];}