18

I've just started experimenting with adding an iOS 8 Today Widget to my app, it's going ok so far but I followed the original template and got my widget created with TodayWidget as its name. In the context of my app's files in Xcode that target/product name is fine. But sadly this is the name that also displays within notification centre, above my widget.

I've tried tracing through various names in my project that match what's being displayed but so far I've yet to find one that lets me update the name displayed.

Anyone got any ideas?

4

3 回答 3

35

在 Project -> Targets 下选择您的小部件。在 Info -> iOS Target Properties 下,将Bundle display name属性更改为您想要的新名称。

1

2

重新启动设备以查看更新的小部件名称。

于 2014-09-30T21:31:11.400 回答
11

JAL 的回答是正确的,但正如我的评论在他的回答中提到的那样。不要期望小部件的名称在添加到 iOS 后会更新。您必须删除并重新安装您的应用程序才能应用任何小部件名称更新。我认为应用程序名称也是如此。干杯

于 2014-10-01T07:58:02.700 回答
7

只需重新启动设备即可显示更新后的名称!

于 2015-02-19T12:39:34.623 回答