PDA

View Full Version : How to Implement Trial Time in App




DavidBlack
Mar 22, 2013, 07:57 PM
I want to Implementing a 15 day time trial
for my app I read this guide but I am having problem I am a objective-C newbie this is how it looks in xcode. Also if anyone can help can your show me exactly how to do it?
Thanks

http://cocoadev.com/wiki/SetADateForAnAppToExpire



gnasher729
Mar 22, 2013, 08:04 PM
I want to Implementing a 15 day time trial
for my app I read this guide but I am having problem I am a objective-C newbie this is how it looks in xcode. Also if anyone can help can your show me exactly how to do it?
Thanks

http://cocoadev.com/wiki/SetADateForAnAppToExpire

I assume you intend to sell this app. With this code in your app, there is no chance in hell it would be accepted on the App Store, so that's 90% of your sales gone.

DavidBlack
Mar 22, 2013, 08:50 PM
Nope I don't want to sell it in the App Store.

ArtOfWarfare
Mar 22, 2013, 09:01 PM
I'm going to take a guess that you haven't a clue what you're doing and copied this code from a tutorial.

Look at the spots where the errors are coming from and compare them to what was in the tutorial.

... oh... it's identical. What a crappy tutorial.

Do you know C yet? I suggest learning C if you don't already know it, as Obj-C is just an extension of C.

Here's a free eBook that I oft recommend for learning C: http://c.learncodethehardway.org/book/

truehybridx
Mar 23, 2013, 10:28 AM
If you managed to implement the other parts like the PDF viewer surely you can see the problem with the brackets ( [ ) on the first date line, even out those and itll work

ArtOfWarfare
Mar 23, 2013, 12:45 PM
If you managed to implement the other parts like the PDF viewer surely you can see the problem with the brackets ( [ ) on the first date line, even out those and itll work

His brackets already balance. His issue is he has brackets surrounding things that aren't method calls.

Sonnestah
Mar 25, 2013, 11:35 AM
from your code I can see you have no programming knowledge. I suggest you to read basic programming tutorials before anything related to obj-c