message:@"This is a very long message, designed just to show you how smart this class is"]; [alert addButtonWithTitle:@"Do something cool" block:^{ // Do something cool when this button is pressed }]; [alert setCancelButtonWithTitle:@"Please, don't do this" block:^{ // Do something or nothing.... This block can even be nil! }]; [alert setDestructiveButtonWithTitle:@"Kill, Kill" block:^{ // Do something nasty when this button is pressed }];
stringWithHumanizedTimeDifference:NSDateHumanizedSuffixNone withFullString:NO]; //This will return @"1m" //2 days myLabel.text = [[NSDate dateWithTimeIntervalSinceNow:-‐3600*24*2] stringWithHumanizedTimeDifference:NSDateHumanizedSuffixAgo withFullString:YES]; //This will return @"2 days ago"
60.0, 280.0, 200.0)]; [tweetLabel setFont:[UIFont fontWithName:@"HelveticaNeue" size:17.0]]; [tweetLabel setTextColor:[UIColor blackColor]]; [tweetLabel setDelegate:self]; [tweetLabel setText:@"Hi. This is a new tool for @you! Developed by-‐ >@SebThiebaud for #iPhone #ObjC... ;-‐) My GitHub page: https://t.co/pQXDoiYA"]; [self.view addSubview:tweetLabel];
your iPhone and Mac App Store apps by prompting users to rate the app after using it for a few days. This approach is one of the best ways to get positive app reviews by targeting only regular users (who presumably like the app or they wouldn't keep using it!).