我收到了以下针对我的应用的崩溃报告.关于如何调试这样的事情的任何想法?
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x417d37f6
Thread 0: Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x39048b26 objc_msgSend + 5
1 UIKit 0x310643ed +[UICalloutBar fadeSharedCalloutBarIfNeededForTouchInView:window:] + 80
2 UIKit 0x31064365 -[UITouchesEvent _dismissSharedCalloutBarIfNeeded] + 228
3 UIKit 0x3102cf87 _UIApplicationHandleEventQueue + 7070
4 CoreFoundation 0x2e882183 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
5 CoreFoundation 0x2e881653 __CFRunLoopDoSources0 + 206
6 CoreFoundation 0x2e87fe47 __CFRunLoopRun + 622
7 CoreFoundation 0x2e7eac27 CFRunLoopRunSpecific + 522
8 CoreFoundation 0x2e7eaa0b CFRunLoopRunInMode + 106
9 GraphicsServices 0x334de283 GSEventRunModal + 138
10 UIKit 0x3108e049 UIApplicationMain + 1136
11 …Run Code Online (Sandbox Code Playgroud) 我想创建这样的弹出窗口(固定大小):
在我的应用程序中使用C#.我查看了NativeWindow,但我不确定这是否是正确的方法.我希望窗口的行为与Windows 7中的音量控制或"连接到"窗口完全相同.
我怎么能做到这一点?
该功能改编自网站:http://eriwen.com/javascript/measure-ems-for-layout/
function getEmSize(el) {
var tempDiv = document.createElement("div");
tempDiv.style.height = "1em";
el.appendChild(tempDiv);
var emSize = tempDiv.offsetHeight;
el.removeChild(tempDiv);
return emSize;
}
Run Code Online (Sandbox Code Playgroud)
我正在运行此函数作为window.resize上另一个函数的一部分,它导致Firefox 3.6上的性能问题在当前的Safari或Chrome上不存在.Firefox的分析师说我花了大部分时间在这个功能上,我很好奇为什么会这样.
有没有办法在不完成所有这些工作的情况下在javascript中获取em大小?我想在重新调整大小时重新计算用户更改它的大小.
aero ×1
border ×1
c# ×1
crash ×1
debugging ×1
firefox ×1
ios ×1
javascript ×1
performance ×1
popup ×1