This question already has an answer here:
Is there any way to get the tamper-proof date and time on iPhone?
(1 answer)
Closed 8 years ago.
So, I'm developing an app that is based on the time, but with NSDate an user can easily hack the application by changing system time of the device. So I might want to use a better method for retrieving time.
How can I do this? Is there an easy way to retrieve time from internet?
Checkout this Google Library: https://github.com/jbenet/ios-ntp
After the library is set up you can use it with the following line:
[NSDate networkDate];
A similar question has also been answered here: Get Date and Time from Apple Server
Related
This question already has answers here:
How to register for an event that reminds app on specified time in iOS
(4 answers)
Closed 7 years ago.
I want to set reminder between some time period that should be repeated everyday for that time period which should be set for reminder.Please help.
Have a look here at this tutorial, I think it might help you:
http://www.appcoda.com/ios-programming-local-notification-tutorial/
This question already has answers here:
Cocoa-Touch: How do I see if two NSDates are in the same day?
(12 answers)
Closed 8 years ago.
I would like to make an app where you get coins ever day.
How can i make a timer or something else who ckecks, wether the user already got the coin?
Can anyone please help me?
Store the time that the user got the coin in the user defaults.
Every time the application enter from the background check if the timeToGetAnotherCoin has passed.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
hi I’m new to IOS development i have developed only one application in iOS now i want to make a polling app in IOS i Google every where i did’t get a proper solution to make a polling app.
In my polling app i want get input poll form the user and i have to store in database and i have to calculate the value for the polling and i have to show the result how many people voted .
so please can any one suggest what is right way to make polling in IOS or is there any alternative way to make this.
thanks.
Assuming you want to store your results on a back end web server with a DB then you would first need to write some web services. I personally would suggest a combination of PHP and MySQL as they're both open source and relatively easy to get to grips with. I also recommend you use JSON as your data interchange format as it provides a human readable structure without the complexity of XML.
Once you have a functioning back end you would need to build an app with the appropriate data fields that you want in either one or multiple views. Personally I would put all of your questions into an array and then cycle through them changing the input controls if necessary. You can then add your answers to an NSMutableArray.
Once you have your complete answer set in your NSMutableArray you can serialise it to JSON and transmit it off to your web service.
There are many guides for getting started with JSON on iOS available, I would suggest you take a look at this one.
Your question is business specific (not to iOS, iPhone & objective C).
So I would suggest you to better try these APIs available in market.
support.polldaddy.com
Poll EveryWhere
TypeForm
Hope that helps.
This question already has answers here:
Playing system sound without importing your own
(11 answers)
Closed 9 years ago.
This is just a question that came off of the top of my head, but does anyone know if there are more sounds built into the system besides the (0x450) click sound? I would assume that there are others that can be put into apps since there are a lot more than just one built into the iPhone.
There is a list posted to AudioServices - iPhone Development Wiki. I've not yet figured out if using this in the following way is grounds for rejection:
AudioServicesPlaySystemSound(1103);
Don't forget to include:
#import <AudioToolbox/AudioToolbox.h>
Check all system sounds with: iOSSystemSoundsLibrary
This question already has an answer here:
Closed 12 years ago.
Possible Duplicate:
how to schedule application in blackberry.
I just want to know how could I schedule a application by which it starts executing at
particular date.
Please send me the code as well..
Your answer is in the answer to this question: Schedule a BlackBerry application