问题
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