Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.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
Macos NSUserX通知大小_Macos_Size_Nsusernotification - Fatal编程技术网

Macos NSUserX通知大小

Macos NSUserX通知大小,macos,size,nsusernotification,Macos,Size,Nsusernotification,我有这个代码,可以显示通知 NSUserNotification *notification = [[NSUserNotification alloc] init]; notification.title = [NSString stringWithFormat:@"%@ (%@)",titre, numero]; notification.informativeText = message; notification.soundName = NSUserNotificationDefaultS

我有这个代码,可以显示通知

NSUserNotification *notification = [[NSUserNotification alloc] init];
notification.title = [NSString stringWithFormat:@"%@ (%@)",titre, numero];
notification.informativeText = message;
notification.soundName = NSUserNotificationDefaultSoundName;
notification.responsePlaceholder = @"Reply";
notification.hasReplyButton = true;
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
我看到文本太大,被截断了。有可能防止这种情况吗

我还添加了回复通知的功能。文本框仅显示一行。是否也可以增加该区域的大小(高度)

或者更好,可以增加通知的大小(高度),以适应更多文本或更大的文本框


提前感谢您的帮助

我认为在NSUserNotification中不可能调整任何内容的大小,至少在10.9上是这样。我想在通知中使用粗体字体…:(