How to rename an iOS 8 Today Widget?

点点圈 提交于 2020-01-01 01:26:31

问题


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?


回答1:


Select your widget under Project -> Targets. Under Info -> iOS Target Properties, change the Bundle display name attribute to whatever you want your new name to be.

Restart the device to see the updated widget name.




回答2:


The answer from JAL is correct, but as my comment mentions under his answer. Don't expect a widget's name to update once it's been added to iOS. You must remove and reinstall your app to get any widget name updates to apply. I presume it's the same thing for app names too. Cheers




回答3:


Just restart the device to display the updated name!



来源:https://stackoverflow.com/questions/26130183/how-to-rename-an-ios-8-today-widget

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!