Hi I’m writing an app that has a competition in it.
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Icon Contest!"
message:@"Design a 1024 x 1024 pixels icon for Example. The best one will be on the app's icon! Send them to: example@example.com."
delegate:self
cancelButtonTitle:@"More Info"
otherButtonTitles:@"Yes",@"No", nil];
[alert show];
I have a deadline and would like to have the app to display a different alert when the date 31st of January has finished.
As yinkou points out you can use
[NSDate date]to get the current date. But for this it may be simpler if you look into the-timeIntervalSinceNowmethod onNSDate. You could do something like this: