• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: a question concerning how to fire a message at the beginning of my application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a question concerning how to fire a message at the beginning of my application


  • Subject: Re: a question concerning how to fire a message at the beginning of my application
  • From: Alex Hall <email@hidden>
  • Date: Tue, 17 Nov 2015 19:34:51 -0500

> On Nov 17, 2015, at 19:11, Quincey Morris <email@hidden> wrote:
>
> On Nov 17, 2015, at 15:59 , Scott Berry <email@hidden> wrote:
>>
>> I was wondering would it be wiser for me to put a notification or an art.
>
> You mean “alert"?
>
>> This must be presented because otherwise this program could be dangerous without the message.
>
> If it’s dangerous, you presumably would want the user to respond before proceeding. In that case, a modal alert with 2 buttons sounds like the right approach, and ‘applicationDidFinishLaunching’ (in the app delegate) is the easiest place to do it.

This page gives a nice example of what you might want to use:
http://stackoverflow.com/questions/24022479/how-would-i-create-a-uialertview-in-swift

You'll also want to look at the UIAlertController class reference or tutorials. If you want to do something when the user clears the alert, add a handler as the example states. Don't forget to store some kind of flag somewhere to suppress the alert on subsequent launches, unless you want this to appear each and every time the app opens.

You could also do this without an alert, by making your storyboard's entry point a view that segues to the rest of your app, but I believe an alert can offer different styles that have more visual impact? I could be wrong there.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


--
Have a great day,
Alex Hall
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >a question concerning how to fire a message at the beginning of my application (From: Scott Berry <email@hidden>)
 >Re: a question concerning how to fire a message at the beginning of my application (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Customising NSFontManager
  • Next by Date: Re: Customising NSFontManager
  • Previous by thread: Re: a question concerning how to fire a message at the beginning of my application
  • Next by thread: Installing older OS X
  • Index(es):
    • Date
    • Thread