> On Nov 17, 2015, at 19:11, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> On Nov 17, 2015, at 15:59 , Scott Berry <sb356...@gmail.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/mehgcap%40icloud.com
> 
> This email sent to mehg...@icloud.com


--
Have a great day,
Alex Hall
mehg...@icloud.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to