NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
[prefs setObject:self.webView forKey:@\"webView\"];
The code above is made to save
you can only store certain types of objects in NSUserDefaults, namely
NSArray
NSData
NSDate
NSDictionary
NSNumber
NSString
(you cant bypass this by putting your webview inside an NSArray)
what you could do is store relevant information about the webview in an NSDictionary that would allow you to be able to get your webview back into its current state when loading from the NSUserDefaults
you can refer to the documentation for more details