-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSURL初始化容易crash #711
Comments
@bang590 换成 var url = NSURL.alloc().init(); 也一样。 |
第一:测试发现使用 NSURL 的 URLWithString 函数不会crash了。NSURL的初始化建议使用URLWithString; |
should be same reason with #705 |
ghost
mentioned this issue
Feb 6, 2017
Closed
此问题与#248 原因相同。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`
require('UIWebView, NSURL,NSURLRequest,JPSpecialInit,UIView')
defineClass('RecommendViewController', {
quickEntrance: function(sender) {
var url = NSURL.alloc().initWithString("http://www.apple.com");
console.log('js viewDidLoad end');
}
})
`
界面有多个按钮,其点击事件都进入quickEntrance。在界面上狂点那妞不到一分钟几乎百分百crash
iphone7plus iOS10.2 xcode: 8.2.1 jspatch:1.1.2
The text was updated successfully, but these errors were encountered: