Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何测量NSRunAlertPanel控件之间的间距_Objective C_Macos_Cocoa_Nsrunalertpanel - Fatal编程技术网

Objective c 如何测量NSRunAlertPanel控件之间的间距

Objective c 如何测量NSRunAlertPanel控件之间的间距,objective-c,macos,cocoa,nsrunalertpanel,Objective C,Macos,Cocoa,Nsrunalertpanel,如何找出NSRunAlertPanel控件之间的像素位置数。 在Interface Builder中,我们可以使用Option+鼠标来查找像素长度。请提供帮助。仅分享答案,如果确实需要测量AlertPanel间距,有一种简单的方法 警报运行时,按Cmd+Shft+4,在控件之间拖动,光标将以像素为单位显示长度和宽度。首先,为什么要知道这一点?你想干什么?其次,为什么要使用NSRunAlertPanel()NSAlert更灵活。

如何找出NSRunAlertPanel控件之间的像素位置数。
在Interface Builder中,我们可以使用Option+鼠标来查找像素长度。请提供帮助。

仅分享答案,如果确实需要测量AlertPanel间距,有一种简单的方法


警报运行时,按Cmd+Shft+4,在控件之间拖动,光标将以像素为单位显示长度和宽度。

首先,为什么要知道这一点?你想干什么?其次,为什么要使用
NSRunAlertPanel()
NSAlert
更灵活。