Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 82

Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
12/20/13 12:39 PM (11 years ago)

Easy code?

Coders, Im thinking this might be easy but I'm struggling with my friend google. I basically want a UIAlert to appear when my app is first launched with a T&C that the user must accept to be able to carry on. If the don't, then it will exit the app (exit(0);) If the agree i just want it to carry on as normal however. i want it to store the fact that they agreed so it doesn't pop up again next time they come in the app. Would it have to be done with core data and a DB holding the one field? Thanks Steve
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
12/20/13 01:20 PM (11 years ago)
I don't think Apple will let an app close itself? I could be wrong, but I think that might be a problem for your above idea. -Chris
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
12/20/13 01:24 PM (11 years ago)
Here's a sample Apple rejection for using a UIAlert to exit the app: We found that your app includes a UI control for quitting the app. This is not in compliance with the iOS Human Interface Guidelines, as required by the App Store Review Guidelines. Please refer to the attached screenshot/s for reference. The iOS Human Interface Guidelines specify, "Always Be Prepared to Stop iOS applications stop when people press the Home button to open a different application or use a device feature, such as the phone. In particular, people don’t tap an application close button or select Quit from a menu. To provide a good stopping experience, an iOS application should: Save user data as soon as possible and as often as reasonable because an exit or terminate notification can arrive at any time. Save the current state when stopping, at the finest level of detail possible so that people don’t lose their context when they start the application again. For example, if your app displays scrolling data, save the current scroll position." It would be appropriate to remove any mechanisms for quitting your app.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/20/13 11:01 PM (11 years ago)
Try using the Login plugin or the Voucher plugin as a starting point. Modify to your needs. Instead of quitting the app, have a Cancel button, which then pops up the Alert plugin screen. -- Niraj
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/20/13 11:05 PM (11 years ago)
Another option is to use the Launch Tutorial plugin. May have to modify a wee bit to suit your needs. https://www.buzztouch.com/plugins/plugin.php?pid=4D33266692A1722ECF4097A --Niraj
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.