Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DavidBlack

macrumors 6502a
Original poster
Jan 27, 2013
606
239
Somewhere In Apple's HQ ;)
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
 

Attachments

  • Screen Shot 2013-03-22 at 8.56.00 PM.png
    Screen Shot 2013-03-22 at 8.56.00 PM.png
    411.4 KB · Views: 324

gnasher729

Suspended
Nov 25, 2005
17,980
5,565
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.
 

ArtOfWarfare

macrumors G3
Nov 26, 2007
9,560
6,059
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

macrumors member
Dec 6, 2010
86
0
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

macrumors G3
Nov 26, 2007
9,560
6,059
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

macrumors regular
Mar 2, 2013
152
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.