We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f320b5 commit 259a810Copy full SHA for 259a810
1 file changed
README.md
@@ -2,3 +2,12 @@ JavaScriptCore-Demo
2
===================
3
4
JavaScriptCore.framework :iOS7 中新加入的框架,用来处理JavaScript。JavaScriptCore 是苹果 Safari 浏览器的 JavaScript 引擎,JavaScriptCor在 OS X 平台上很早就存在的,而在 iOS 平台,直到IOS7才对外开放,并提供了 Objective-C 的接口
5
+
6
+====================
7
+Edited by Winzlee
8
+注:在JSCallOC中,当创建原生的UIAlertView的时候,需要把代码放到主线程中,否则就会因为在后台修改了视图而抛出异常,会在以后的操作中有影响。
9
+ [[NSOperationQueue mainQueue]addOperationWithBlock:^{
10
11
+ UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"提示" message:str delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
12
+ [alert show];
13
+ }];
0 commit comments