开发者

How to Pass value to webview from viewcontroller

开发者 https://www.devze.com 2023-01-08 08:28 出处:网络
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).

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消