3

I'm developing an iOS app consisting of HTML functionality within a UIWebView object.

The app contains a number of javascript alerts e.g. alert("Here is a message.") which display the message fine, but the title of the alert box is set to MyAppName.app.

I would prefer this was set to My App Name instead, but can't see where this is set, or what value I need to change.

Loftx
  • 1,760
  • 4
  • 29
  • 50

1 Answers1

0

You will not be able to change the title with javascript, but you can display a normal UIAlertView from your app, you can find the answer here:

javascript to objective c call

Community
  • 1
  • 1
Oscar Gomez
  • 18,436
  • 13
  • 85
  • 118
  • Hi Oscar, thanks for your response, but my question is what determines the alert title rather than how I can change it. – Loftx Jan 18 '12 at 13:34
  • @Loftx The title is your application bundleID in the plist file. – Oscar Gomez Jan 18 '12 at 13:37
  • do you mean the "Bundle identifer"? This is set to "uk.co.organisation.my-app-name" and changing it doesn't affect the title displayed in the alert. – Loftx Jan 18 '12 at 14:00
  • @Lotfx was referring to the bundle display name, listed on your info-plist file. – Oscar Gomez Jan 18 '12 at 14:58
  • This does not seem to be the case either. I have tried altering the bundle display name, but this doesn't have any affect on the title. – Loftx Jan 18 '12 at 16:28