How to Pass value to webview from viewcontroller
I have UIViewController from which i have to pass nWordID value to Webview. This webview push another we开发者_开发百科bview on which i have to use nWordID (use it on second webview).
didselect method looks like: nWordID = [[rowData objectForKey:@"WordID"] intValue];
[PDF_Viewer passwordID:nWordID]; // Try but not work. PDF_Viewer is web view.passwordID is define in webview.
Is it possible to pass nWordID directly to second webview?
Is passwordID
a property on the PDF_Viewer
?
Then use
PDF_Viewer.passwordID = nWordID;
Or if you want to use square brackets:
[PDF_Viewer setPasswordID:nWordID];
精彩评论