简体   繁体   English

UILocalNotification显示Xcode项目名称

[英]UILocalNotification showing Xcode project name

When I send a UILocalNotification the title of the notification is the project name I have in Xcode, how can I change the packageTracker to something else? 当我发送UILocalNotification时,通知的标题是我在Xcode中拥有的项目名称,如何将packageTracker更改为其他名称?

Here is how I am sending the notification 这是我发送通知的方式

  UILocalNotification *notification = [[UILocalNotification alloc]init];
  notification.alertBody = @"Test Local Notification";
  notification.fireDate = [NSDate dateWithTimeIntervalSinceNow:1];
  notification.timeZone = [NSTimeZone defaultTimeZone];
  [[UIApplication sharedApplication] scheduleLocalNotification:notification];

在此处输入图片说明

This may be tied to the Bundle Display Name. 这可能与捆绑显示名称相关。 Goto your Info.plist and change (or add the Key "Bundle Display Name" or "CFBundleDisplayName" for raw Key) and add a new name. 转到您的Info.plist并进行更改(或为原始密钥添加密钥“ Bundle Display Name”或“ CFBundleDisplayName”)并添加一个新名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM